Skip to content

Commit

Permalink
Update FuseBox example to be compatible with Inferno v4
Browse files Browse the repository at this point in the history
  • Loading branch information
deamme committed Feb 8, 2018
1 parent 026759b commit 8932f8f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/fuse-box/fuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const {
WebIndexPlugin,
QuantumPlugin,
} = require('fuse-box');
// const transformInferno = require('../../dist').default
const transformInferno = require('ts-transform-inferno').default;
const transformInferno = require('../../dist').default
// const transformInferno = require('ts-transform-inferno').default;
const transformClasscat = require('ts-transform-classcat').default;
let fuse, app;
let isProduction = false;
Expand Down
2 changes: 1 addition & 1 deletion examples/fuse-box/src/components/Incrementer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Component from "inferno-component";
import { Component } from "inferno";
import { addOne } from "../utils/math";
import { Visualizer } from "./Visualizer";

Expand Down
5 changes: 2 additions & 3 deletions examples/fuse-box/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { render, version } from "inferno";
import Component from "inferno-component";
import { render, version, Component } from "inferno";
import { Incrementer } from "./components/Incrementer";

import './main.css'
Expand All @@ -12,7 +11,7 @@ class MyComponent extends Component<any, any> {
constructor(props, context) {
super(props, context);

this.tsxVersion = 2.48; /* This is typed value */
this.tsxVersion = 2.71; /* This is typed value */
}

public render() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"author": "Deam Hansen",
"license": "MIT",
"dependencies": {
"typescript": "^2.6.2"
"typescript": "^2.7.1"
},
"devDependencies": {
"@types/node": "^8.0.53",
Expand Down

0 comments on commit 8932f8f

Please sign in to comment.