Skip to content

Commit

Permalink
build: Add dynamic-import-node transform to support import() in t…
Browse files Browse the repository at this point in the history
…ests.
  • Loading branch information
goto-bus-stop committed Jun 7, 2017
1 parent a93e44e commit 7b77e67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"autoprefixer": "^7.0.0",
"babel-eslint": "^7.1.1",
"babel-loader": "^7.0.0-beta.1",
"babel-plugin-dynamic-import-node": "^1.0.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
"babel-plugin-transform-export-extensions": "^6.22.0",
Expand Down
5 changes: 4 additions & 1 deletion test/common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const chai = require('chai');

require('babel-register')({
plugins: [ 'transform-es2015-modules-commonjs' ]
plugins: [
'transform-es2015-modules-commonjs',
'dynamic-import-node'
]
});
require('yamlify/register');

Expand Down

0 comments on commit 7b77e67

Please sign in to comment.