Ver código fonte

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)
island205 6 anos atrás
pai
commit
5f346f04de
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      build/webpack.conf.js

+ 2 - 1
build/webpack.conf.js

@@ -18,7 +18,8 @@ module.exports = {
     libraryTarget: 'umd',
     libraryExport: 'default',
     library: 'ELEMENT',
-    umdNamedDefine: true
+    umdNamedDefine: true,
+    globalObject: 'typeof self !== \'undefined\' ? self : this'
   },
   resolve: {
     extensions: ['.js', '.vue', '.json'],