systemjs-plugin-babel
Advanced tools
Comparing version 0.0.19 to 0.0.20
{ | ||
"name": "systemjs-plugin-babel", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"registry": "npm", | ||
@@ -5,0 +5,0 @@ "jspmPackage": true, |
@@ -10,2 +10,3 @@ var babel = require('systemjs-babel-build').babel; | ||
var stage1 = require('systemjs-babel-build').pluginsStage1; | ||
var react = require('systemjs-babel-build').pluginsReact; | ||
@@ -48,2 +49,3 @@ var externalHelpers = require('systemjs-babel-build').externalHelpers; | ||
* stage1: true / false (defaults to false) | ||
* react: true / false (defaults to false) | ||
* plugins: array of custom plugins (objects or module name strings) | ||
@@ -63,2 +65,3 @@ * presets: array of custom presets (objects or module name strings) | ||
stage1: false, | ||
react: false, | ||
compact: false, | ||
@@ -154,2 +157,7 @@ comments: true | ||
if (babelOptions.react) | ||
presets.push({ | ||
plugins: react | ||
}); | ||
if (babelOptions.presets) | ||
@@ -156,0 +164,0 @@ babelOptions.presets.forEach(function(preset) { |
@@ -76,2 +76,16 @@ SystemJS Babel Plugin | ||
### React JSX | ||
To use React with JSX support set: | ||
```javascript | ||
SystemJS.config({ | ||
meta: { | ||
'*.js': { | ||
react: true | ||
} | ||
} | ||
}); | ||
``` | ||
### Building and Bundling | ||
@@ -78,0 +92,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2705483
54269
159