Skip to content

Commit f08b689

Browse files
authored
Merge pull request ElemeFE#14242 from island205/bugfix/fix-umd-module
Build: Fix UMD bundle error used in node env
2 parents af8267f + 5f346f0 commit f08b689

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)