Commit 5f346f04 authored by island205's avatar island205

Build: Fix UMD bundle error used in node env

Webpack UMD modules are broken currently: [webpack/webpack#6525](https://github.com/webpack/webpack/issues/6525)
parent af8267f9
...@@ -18,7 +18,8 @@ module.exports = { ...@@ -18,7 +18,8 @@ module.exports = {
libraryTarget: 'umd', libraryTarget: 'umd',
libraryExport: 'default', libraryExport: 'default',
library: 'ELEMENT', library: 'ELEMENT',
umdNamedDefine: true umdNamedDefine: true,
globalObject: 'typeof self !== \'undefined\' ? self : this'
}, },
resolve: { resolve: {
extensions: ['.js', '.vue', '.json'], extensions: ['.js', '.vue', '.json'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment