Skip to content

Commit

Permalink
fix: mock process for 3rd party libs (close #934)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 4, 2018
1 parent 811d056 commit a2ac6be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@vue/cli-service/lib/config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ module.exports = (api, options) => {
// prevent webpack from injecting useless setImmediate polyfill because Vue
// source contains it (although only uses it if it's native).
setImmediate: false,
// process is injected via DefinePlugin
process: false,
// process is injected via DefinePlugin, although some 3rd party
// libraries may require a mock to work properly (#934)
process: 'mock',
// prevent webpack from injecting mocks to Node native modules
// that does not make sense for the client
dgram: 'empty',
Expand Down

0 comments on commit a2ac6be

Please sign in to comment.