feat(learn): lazy load Enzyme in the test frame

This commit is contained in:
Valeriy
2019-01-12 03:41:45 +03:00
committed by Stuart Taylor
parent ce902c7475
commit 00a1d25fbb
4 changed files with 27 additions and 24 deletions

View File

@@ -11,6 +11,8 @@ module.exports = (env = {}) => {
},
devtool: __DEV__ ? 'inline-source-map' : 'source-map',
output: {
publicPath: '/js/',
chunkFilename: '[name].js',
path: path.join(__dirname, './static/js')
},
stats: {
@@ -32,7 +34,10 @@ module.exports = (env = {}) => {
{ modules: false, targets: '> 0.25%, not dead' }
]
],
plugins: ['@babel/plugin-transform-runtime']
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-syntax-dynamic-import'
]
}
}
}