Skip to content

Commit

Permalink
Makes use of new 'includeAliases' feature
Browse files Browse the repository at this point in the history
  • Loading branch information
hanseartic committed Feb 8, 2023
1 parent 686e27d commit 61de4ce
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,11 @@ module.exports = {
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
new NodePolyfillPlugin({excludeAliases:[
//"assert",
//"http",
//"https",
//"url",
"buffer",
"console",
"constants",
"crypto",
"domain",
"events",
"os",
"path",
"punycode",
"process",
"querystring",
"stream",
"_stream_duplex",
"_stream_passthrough",
"_stream_readable",
"_stream_transform",
"_stream_writable",
"string_decoder",
"sys",
"timers",
"tty",
"util",
"vm",
"zlib"
new NodePolyfillPlugin({includeAliases:[
"assert",
"http",
"https",
"url"
]})
]
}
Expand Down

0 comments on commit 61de4ce

Please sign in to comment.