Skip to content

Commit 691cfa2

Browse files
committed
fix: shim global for node modules
ref #774
1 parent dc29e88 commit 691cfa2

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/config/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ module.exports = (api, options) => {
9292
// prevent webpack from injecting useless setImmediate polyfill because Vue
9393
// source contains it (although only uses it if it's native).
9494
setImmediate: false,
95+
// process is injected via DefinePlugin
9596
process: false,
96-
global: false,
9797
// prevent webpack from injecting mocks to Node native modules
9898
// that does not make sense for the client
9999
dgram: 'empty',

0 commit comments

Comments
 (0)