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:
Oliver Eyton-Williams
2021-03-27 14:49:30 +01:00
committed by GitHub
parent 8df5293af3
commit e91793b934
3 changed files with 7 additions and 1 deletions

View File

@@ -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,