You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was so excited to see a release candidate of CRACO with support for Create React App 5 and Webpack 5 has been released. Thank you so much to everyone who supported this important effort!
Now that it's released, could anyone provide some guidance on the proper way to add in the polyfills that were removed in Webpack?
module.exports={webpack: {configure: {},},};
There's two polyfills I'm trying to add:
crypto (crypto-browserify)
stream (stream-browserify)
The text was updated successfully, but these errors were encountered:
Ah, just came across a comment that gave me a great hint! For anyone else looking for a quick fix for the CRA5 polyfill issue, check out the CRACO config file below:
module.exports={webpack: {configure: {resolve: {fallback: {// Webpack 5, used in react-script v5, dropped support for built in node polyfills.// CRACO is being used to add these polyfills back into the webpack config until they are not needed.crypto: require.resolve("crypto-browserify"),stream: require.resolve("stream-browserify"),}}},},};
I was so excited to see a release candidate of CRACO with support for Create React App 5 and Webpack 5 has been released. Thank you so much to everyone who supported this important effort!
Now that it's released, could anyone provide some guidance on the proper way to add in the polyfills that were removed in Webpack?
There's two polyfills I'm trying to add:
The text was updated successfully, but these errors were encountered: