make syntax-dynamic-import optional

This commit is contained in:
guybedford 2016-11-11 10:15:31 +02:00
parent d62403753c
commit d8c83bba52
5 changed files with 5 additions and 5 deletions

View File

@ -8,13 +8,13 @@
"dependencies": {
"babel-template": "^6.14.0",
"babel-helper-hoist-variables": "^6.18.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-runtime": "^6.11.6"
},
"keywords": [
"babel-plugin"
],
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.18.0"
"babel-helper-plugin-test-runner": "^6.18.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0"
}
}

View File

@ -2,7 +2,6 @@
import hoistVariables from "babel-helper-hoist-variables";
import template from "babel-template";
import syntax from "babel-plugin-syntax-dynamic-import";
let buildTemplate = template(`
SYSTEM_REGISTER(MODULE_NAME, [SOURCES], function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {
@ -72,8 +71,6 @@ export default function ({ types: t }) {
};
return {
inherits: syntax,
visitor: {
CallExpression(path, state) {

View File

@ -0,0 +1,3 @@
{
"plugins": ["external-helpers", "syntax-dynamic-import", "transform-es2015-modules-systemjs"]
}