Skip to content

Commit

Permalink
exclude querystring from webpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
biwillia committed Apr 23, 2018
1 parent 423b34a commit d58e66f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/webpack.dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const config = merge(base, {
// without this, webpack throws in a polyfill for node.js's Buffer class
node: {
Buffer: false,
process: false
process: false,
querystring: false
},

plugins: [
Expand All @@ -28,7 +29,7 @@ const config = merge(base, {
// in the node:{} structure above, but webpack will throw
// a build error if it sees code that tries to use these modules;
// to solve this, we just ignore requires with the following modules:
new webpack.IgnorePlugin(/http-node|package[.]json/)
new webpack.IgnorePlugin(/http-node|package[.]json|querystring/)
]
})

Expand Down

0 comments on commit d58e66f

Please sign in to comment.