make syntax-dynamic-import optional
This commit is contained in:
parent
d62403753c
commit
d8c83bba52
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", "syntax-dynamic-import", "transform-es2015-modules-systemjs"]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user