Skip to content

Commit

Permalink
Teach babel to understand dynamic import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
niik committed May 22, 2018
1 parent ff8f72f commit e4e5310
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
@@ -0,0 +1,3 @@
{
"plugins": ["syntax-dynamic-import"]
}
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Expand Up @@ -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"
Expand Down

0 comments on commit e4e5310

Please sign in to comment.