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
Given that Webpack 5 no longer supports polyfills node modules, the require statement for url is no longer supported in browsers.
Users will see a build error asking to manually resolve the url module.
There are a couple of options for consumers of this library to work around this, one you can manually resolve this using the node-url package and adding this to your webpack config:
The other option, in this case is to use the URL class (node, MDN) class to handle parsing of urls, which should work in both web and node environments.
The text was updated successfully, but these errors were encountered:
Given that Webpack 5 no longer supports polyfills node modules, the require statement for
url
is no longer supported in browsers.Users will see a build error asking to manually resolve the
url
module.There are a couple of options for consumers of this library to work around this, one you can manually resolve this using the node-url package and adding this to your webpack config:
The other option, in this case is to use the URL class (node, MDN) class to handle parsing of urls, which should work in both web and node environments.
The text was updated successfully, but these errors were encountered: