diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000000..796fcffcd12 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "plugins": ["syntax-dynamic-import"] +} diff --git a/package.json b/package.json index 9513bfb2e60..b520890fb3d 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "awesome-typescript-loader": "^5.0.0", "aws-sdk": "^2.23.0", "babel-core": "^6.26.3", + "babel-plugin-syntax-dynamic-import": "^6.18.0", "chai": "^4.1.1", "chai-as-promised": "^7.1.1", "chai-datetime": "^1.4.1", diff --git a/yarn.lock b/yarn.lock index a3d83da06f2..187547ca25d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -788,6 +788,10 @@ babel-messages@^6.23.0: dependencies: babel-runtime "^6.22.0" +babel-plugin-syntax-dynamic-import@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" + babel-register@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071"