File tree Expand file tree Collapse file tree 5 files changed +22
-7
lines changed
Expand file tree Collapse file tree 5 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,27 @@ This is a plugin for Typescript compiler that compiles Typescript JSX syntax ( T
1616``` javascript
1717const transformInferno = require (' ts-plugin-inferno' ).default
1818
19- transformInferno ()
19+ // Typescript compiler options
20+ options: {
21+ getCustomTransformers : () => ({
22+ after: [transformInferno ()],
23+ }),
24+ },
2025```
2126
2227It'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
2642Look 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 ) !
Original file line number Diff line number Diff 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' } ) ,
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ import terser from '@rollup/plugin-terser'
1010const isProd = process . env . NODE_ENV === 'production'
1111
1212const tsTransformer = ( ) => ( {
13- before : [ transformInferno . default ( ) ] ,
14- after : [ ] ,
13+ after : [ transformInferno . default ( ) ]
1514} )
1615
1716const config = {
Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments