Skip to content

Commit

Permalink
fix: shim global for node modules
Browse files Browse the repository at this point in the history
ref #774
  • Loading branch information
yyx990803 committed Feb 4, 2018
1 parent dc29e88 commit 691cfa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ 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,
global: false,
// 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 691cfa2

Please sign in to comment.