Skip to content

Commit

Permalink
TEMP fix for build
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Sep 3, 2021
1 parent 4022bf6 commit a5abb2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ const webpackConfig = {
// importing `./client/file.js` is the same thing than importing `calypso/file.js`
calypso: __dirname,

// Node polyfills
process: 'process/browser',
util: findPackage( 'util/' ), //Trailing `/` stops node from resolving it to the built-in module
} ),
},
Expand All @@ -275,8 +273,9 @@ const webpackConfig = {
__i18n_text_domain__: JSON.stringify( 'default' ),
global: 'window',
} ),
// Node polyfills
new webpack.ProvidePlugin( {
process: 'process/browser',
process: 'process/browser.js',
} ),
new webpack.NormalModuleReplacementPlugin( /^path$/, 'path-browserify' ),
new webpack.IgnorePlugin( { resourceRegExp: /^\.\/locale$/, contextRegExp: /moment$/ } ),
Expand Down

0 comments on commit a5abb2b

Please sign in to comment.