Skip to content

Commit c8158ab

Browse files
committed
V6.0.0
1 parent fd975e1 commit c8158ab

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,27 @@ This is a plugin for Typescript compiler that compiles Typescript JSX syntax ( T
1616
```javascript
1717
const transformInferno = require('ts-plugin-inferno').default
1818

19-
transformInferno()
19+
// Typescript compiler options
20+
options: {
21+
getCustomTransformers: () => ({
22+
after: [transformInferno()],
23+
}),
24+
},
2025
```
2126

2227
It's different depending on what bundler you're using. Please check the examples folder.
2328

29+
## Breaking change in v6.0.0
30+
31+
32+
Since version v6.0.0 this plugin only supports Javascript runtime environment where `Object.assign` is available.
33+
It's also highly recommended to set typescript settings as follows
34+
35+
- `compilerOptions.module` to `ES2015` or `ES6` or higher.
36+
- `commpilerOptions.target` to `ES2015` or higher
37+
38+
39+
2440
## Usage with FuseBox
2541

2642
Look into the `examples/fuse-box` folder and the `fuse.js` file.
@@ -57,4 +73,4 @@ Run `npm test` again to verify that all tests are passing.
5773

5874
## Credits
5975

60-
This is fork of awesome [ts-transform-inferno](https://github.com/deamme/ts-transform-inferno)!
76+
This is fork of awesome [ts-transform-inferno](https://github.com/deamme/ts-transform-inferno)!

examples/fuse-box/fuse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Sparky.task('config', _ => {
2020
cache: !isProduction,
2121
sourceMaps: !isProduction,
2222
transformers: {
23-
before: [transformInferno.default()],
23+
after: [transformInferno.default()],
2424
},
2525
plugins: [
2626
EnvPlugin({ NODE_ENV: isProduction ? 'production' : 'development' }),

examples/rollup/rollup.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import terser from '@rollup/plugin-terser'
1010
const isProd = process.env.NODE_ENV === 'production'
1111

1212
const tsTransformer = () => ({
13-
before: [transformInferno.default()],
14-
after: [],
13+
after: [transformInferno.default()]
1514
})
1615

1716
const config = {

examples/webpack/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
loader: 'ts-loader',
2424
options: {
2525
getCustomTransformers: () => ({
26-
before: [transformInferno()],
26+
after: [transformInferno()],
2727
}),
2828
},
2929
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-plugin-inferno",
3-
"version": "5.0.0",
3+
"version": "6.0.0",
44
"description": "A typescript transformer for InfernoJS",
55
"bugs": {
66
"url": "https://github.com/infernojs/ts-plugin-inferno/issues"

0 commit comments

Comments
 (0)