Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit f775867

Browse files
committed
0.0.2
1 parent 10a3674 commit f775867

5 files changed

Lines changed: 6949 additions & 2406 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,20 @@ SystemJS.config({
7373

7474
This allows workflows that just support ES modules and stage proposal transforms.
7575

76+
### React JSX
77+
78+
To use React with JSX support set:
79+
80+
```javascript
81+
SystemJS.config({
82+
meta: {
83+
'*.js': {
84+
react: true
85+
}
86+
}
87+
});
88+
```
89+
7690
### Building and Bundling
7791

7892
Build support works with no further configuration through the standard jspm build and bundle commands.

build-babel/jspm.config.js

Lines changed: 66 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,12 @@
11
SystemJS.config({
22
devConfig: {
33
"map": {
4-
"plugin-babel": "npm:systemjs-plugin-babel@0.0.16",
5-
"babel-runtime": "npm:babel-runtime@5.8.38",
6-
"babel-preset-react": "npm:babel-preset-react@6.22.0"
7-
},
8-
"packages": {
9-
"npm:babel-preset-react@6.22.0": {
10-
"map": {
11-
"babel-plugin-syntax-flow": "npm:babel-plugin-syntax-flow@6.18.0",
12-
"babel-plugin-syntax-jsx": "npm:babel-plugin-syntax-jsx@6.18.0",
13-
"babel-plugin-transform-flow-strip-types": "npm:babel-plugin-transform-flow-strip-types@6.22.0",
14-
"babel-plugin-transform-react-display-name": "npm:babel-plugin-transform-react-display-name@6.22.0",
15-
"babel-plugin-transform-react-jsx": "npm:babel-plugin-transform-react-jsx@6.22.0",
16-
"babel-plugin-transform-react-jsx-self": "npm:babel-plugin-transform-react-jsx-self@6.22.0",
17-
"babel-plugin-transform-react-jsx-source": "npm:babel-plugin-transform-react-jsx-source@6.22.0"
18-
}
19-
},
20-
"npm:babel-plugin-transform-flow-strip-types@6.22.0": {
21-
"map": {
22-
"babel-plugin-syntax-flow": "npm:babel-plugin-syntax-flow@6.18.0",
23-
"babel-runtime": "npm:babel-runtime@6.22.0"
24-
}
25-
},
26-
"npm:babel-plugin-transform-react-jsx@6.22.0": {
27-
"map": {
28-
"babel-plugin-syntax-jsx": "npm:babel-plugin-syntax-jsx@6.18.0",
29-
"babel-runtime": "npm:babel-runtime@6.22.0",
30-
"babel-helper-builder-react-jsx": "npm:babel-helper-builder-react-jsx@6.22.0"
31-
}
32-
},
33-
"npm:babel-plugin-transform-react-jsx-self@6.22.0": {
34-
"map": {
35-
"babel-plugin-syntax-jsx": "npm:babel-plugin-syntax-jsx@6.18.0",
36-
"babel-runtime": "npm:babel-runtime@6.22.0"
37-
}
38-
},
39-
"npm:babel-plugin-transform-react-jsx-source@6.22.0": {
40-
"map": {
41-
"babel-plugin-syntax-jsx": "npm:babel-plugin-syntax-jsx@6.18.0",
42-
"babel-runtime": "npm:babel-runtime@6.22.0"
43-
}
44-
},
45-
"npm:babel-plugin-transform-react-display-name@6.22.0": {
46-
"map": {
47-
"babel-runtime": "npm:babel-runtime@6.22.0"
48-
}
49-
},
50-
"npm:babel-helper-builder-react-jsx@6.22.0": {
51-
"map": {
52-
"babel-runtime": "npm:babel-runtime@6.22.0",
53-
"lodash": "npm:lodash@4.17.4",
54-
"babel-types": "npm:babel-types@6.22.0",
55-
"esutils": "npm:esutils@2.0.2"
56-
}
57-
},
58-
"npm:babel-runtime@6.22.0": {
59-
"map": {
60-
"regenerator-runtime": "npm:regenerator-runtime@0.10.1",
61-
"core-js": "npm:core-js@2.4.1"
62-
}
63-
},
64-
"npm:babel-types@6.22.0": {
65-
"map": {
66-
"esutils": "npm:esutils@2.0.2",
67-
"lodash": "npm:lodash@4.17.4",
68-
"babel-runtime": "npm:babel-runtime@6.22.0",
69-
"to-fast-properties": "npm:to-fast-properties@1.0.2"
70-
}
71-
}
4+
"plugin-babel": "npm:systemjs-plugin-babel@0.0.16"
725
}
736
},
747
transpiler: "plugin-babel",
758
map: {
9+
"babel-runtime": "npm:babel-runtime@5.8.38",
7610
"regenerator": "github:facebook/regenerator@0.8.46",
7711
"http": "npm:jspm-nodelibs-http@0.2.0",
7812
"net": "npm:jspm-nodelibs-net@0.2.0",
@@ -115,6 +49,7 @@ SystemJS.config({
11549
"github:*/*.json"
11650
],
11751
map: {
52+
"babel-preset-react": "npm:babel-preset-react@6.22.0",
11853
"babel-plugin-syntax-dynamic-import": "npm:babel-plugin-syntax-dynamic-import@6.18.0",
11954
"debug": "npm:debug@2.6.0",
12055
"babel-core": "npm:babel-core@6.21.0",
@@ -876,6 +811,69 @@ SystemJS.config({
876811
"inherits": "npm:inherits@2.0.3",
877812
"minimalistic-assert": "npm:minimalistic-assert@1.0.0"
878813
}
814+
},
815+
"npm:babel-preset-react@6.22.0": {
816+
"map": {
817+
"babel-plugin-syntax-flow": "npm:babel-plugin-syntax-flow@6.18.0",
818+
"babel-plugin-syntax-jsx": "npm:babel-plugin-syntax-jsx@6.18.0",
819+
"babel-plugin-transform-flow-strip-types": "npm:babel-plugin-transform-flow-strip-types@6.22.0",
820+
"babel-plugin-transform-react-display-name": "npm:babel-plugin-transform-react-display-name@6.22.0",
821+
"babel-plugin-transform-react-jsx": "npm:babel-plugin-transform-react-jsx@6.22.0",
822+
"babel-plugin-transform-react-jsx-self": "npm:babel-plugin-transform-react-jsx-self@6.22.0",
823+
"babel-plugin-transform-react-jsx-source": "npm:babel-plugin-transform-react-jsx-source@6.22.0"
824+
}
825+
},
826+
"npm:babel-plugin-transform-flow-strip-types@6.22.0": {
827+
"map": {
828+
"babel-plugin-syntax-flow": "npm:babel-plugin-syntax-flow@6.18.0",
829+
"babel-runtime": "npm:babel-runtime@6.22.0"
830+
}
831+
},
832+
"npm:babel-plugin-transform-react-jsx@6.22.0": {
833+
"map": {
834+
"babel-plugin-syntax-jsx": "npm:babel-plugin-syntax-jsx@6.18.0",
835+
"babel-runtime": "npm:babel-runtime@6.22.0",
836+
"babel-helper-builder-react-jsx": "npm:babel-helper-builder-react-jsx@6.22.0"
837+
}
838+
},
839+
"npm:babel-plugin-transform-react-jsx-self@6.22.0": {
840+
"map": {
841+
"babel-plugin-syntax-jsx": "npm:babel-plugin-syntax-jsx@6.18.0",
842+
"babel-runtime": "npm:babel-runtime@6.22.0"
843+
}
844+
},
845+
"npm:babel-plugin-transform-react-jsx-source@6.22.0": {
846+
"map": {
847+
"babel-plugin-syntax-jsx": "npm:babel-plugin-syntax-jsx@6.18.0",
848+
"babel-runtime": "npm:babel-runtime@6.22.0"
849+
}
850+
},
851+
"npm:babel-plugin-transform-react-display-name@6.22.0": {
852+
"map": {
853+
"babel-runtime": "npm:babel-runtime@6.22.0"
854+
}
855+
},
856+
"npm:babel-helper-builder-react-jsx@6.22.0": {
857+
"map": {
858+
"babel-runtime": "npm:babel-runtime@6.22.0",
859+
"lodash": "npm:lodash@4.17.4",
860+
"babel-types": "npm:babel-types@6.22.0",
861+
"esutils": "npm:esutils@2.0.2"
862+
}
863+
},
864+
"npm:babel-runtime@6.22.0": {
865+
"map": {
866+
"regenerator-runtime": "npm:regenerator-runtime@0.10.1",
867+
"core-js": "npm:core-js@2.4.1"
868+
}
869+
},
870+
"npm:babel-types@6.22.0": {
871+
"map": {
872+
"esutils": "npm:esutils@2.0.2",
873+
"lodash": "npm:lodash@4.17.4",
874+
"babel-runtime": "npm:babel-runtime@6.22.0",
875+
"to-fast-properties": "npm:to-fast-properties@1.0.2"
876+
}
879877
}
880878
}
881879
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "systemjs-plugin-babel",
3-
"version": "0.0.19",
3+
"version": "0.0.20",
44
"registry": "npm",
55
"jspmPackage": true,
66
"repository": {

systemjs-babel-browser.js

Lines changed: 26 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)