chore(tools): Move to webpack v4

This commit is contained in:
Stuart Taylor
2018-07-31 10:47:31 +01:00
committed by mrugesh mohapatra
parent 60719fcbe6
commit af8030c1d1
3 changed files with 2514 additions and 185 deletions

View File

@@ -12,6 +12,7 @@ module.exports = {
bundle: './client'
},
devtool: __DEV__ ? 'inline-source-map' : 'source-map',
mode: __DEV__ ? 'development' : 'production',
node: {
// Mock Node.js modules that Babel require()s but that we don't
// particularly care about.
@@ -46,10 +47,6 @@ module.exports = {
].filter(Boolean)
}]
},
externals: {
codemirror: 'CodeMirror',
'loop-protect': 'loopProtect'
},
plugins: [
new webpack.DefinePlugin({
'process.env': {