Skip to content

Commit b082da8

Browse files
authored
fix: process should be polyfilled rather than mocked (#3878)
To be in line with webpack's default configuration and avoid confusions: https://webpack.js.org/configuration/node/
1 parent 4f74b27 commit b082da8

File tree

1 file changed

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

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ module.exports = (api, options) => {
153153
// prevent webpack from injecting useless setImmediate polyfill because Vue
154154
// source contains it (although only uses it if it's native).
155155
setImmediate: false,
156-
// process is injected via DefinePlugin, although some 3rd party
157-
// libraries may require a mock to work properly (#934)
158-
process: 'mock',
159156
// prevent webpack from injecting mocks to Node native modules
160157
// that does not make sense for the client
161158
dgram: 'empty',

0 commit comments

Comments
 (0)