Skip to content

Commit a2ac6be

Browse files
committed
fix: mock process for 3rd party libs (close #934)
1 parent 811d056 commit a2ac6be

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ 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
96-
process: false,
95+
// process is injected via DefinePlugin, although some 3rd party
96+
// libraries may require a mock to work properly (#934)
97+
process: 'mock',
9798
// prevent webpack from injecting mocks to Node native modules
9899
// that does not make sense for the client
99100
dgram: 'empty',

0 commit comments

Comments
 (0)