Add devtoolNamespace to fix sourcemap conflicts

This commit is contained in:
Toby Zerner 2018-08-25 19:42:08 +09:30
parent 50dc913c58
commit bb780f9b09

View File

@ -45,7 +45,8 @@ module.exports = function(options = {}) {
output: {
path: path.resolve(process.cwd(), 'dist'),
library: 'module.exports',
libraryTarget: 'assign'
libraryTarget: 'assign',
devtoolNamespace: require(path.resolve(process.cwd(), 'package.json')).name
},
externals: [