Skip to content

Commit

Permalink
fix(process/browser): require process/browser in a way that works wit…
Browse files Browse the repository at this point in the history
…h the yarn v2.2.2 nested dependency

Signed-off-by: Stefan Blaginov <[email protected]>
  • Loading branch information
Stefan Blaginov authored and Stefan Blaginov committed Nov 29, 2023
1 parent e283fbb commit cbeb40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const browserServerConfig = {
Buffer: ['buffer', 'Buffer'],
}),
new webpack.ProvidePlugin({
process: 'process/browser', // provide a shim for the global `process` variable
process: require.resolve('process/browser'), // provide a shim for the global `process` variable
}),
new NodePolyfillPlugin(),
new HtmlWebpackPlugin({
Expand Down

0 comments on commit cbeb40d

Please sign in to comment.