fix(client): polyfill path with path-browserify (#41615)
path is being used by webpack to transform imports into requires. Since some challenges rely on this transformation, path has to exist in the browser.
This commit is contained in:
committed by
GitHub
parent
8df5293af3
commit
e91793b934
@@ -204,7 +204,7 @@ exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => {
|
||||
resolve: {
|
||||
fallback: {
|
||||
fs: false,
|
||||
path: false,
|
||||
path: require.resolve('path-browserify'),
|
||||
assert: require.resolve('assert'),
|
||||
crypto: require.resolve('crypto-browserify'),
|
||||
util: false,
|
||||
|
Reference in New Issue
Block a user