Skip to content

Commit 5f346f0

Browse files
committed
Build: Fix UMD bundle error used in node env
Webpack UMD modules are broken currently: [webpack/webpack#6525](webpack/webpack#6525)
1 parent af8267f commit 5f346f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/webpack.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ module.exports = {
1818
libraryTarget: 'umd',
1919
libraryExport: 'default',
2020
library: 'ELEMENT',
21-
umdNamedDefine: true
21+
umdNamedDefine: true,
22+
globalObject: 'typeof self !== \'undefined\' ? self : this'
2223
},
2324
resolve: {
2425
extensions: ['.js', '.vue', '.json'],

0 commit comments

Comments
 (0)