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
WebPack uses the package.jsonbrowser field, ignoring the main one which is the CommonJS standard field to use.
If the current behavior is a bug, please provide the steps to reproduce.
I've updated one of my projects to be usable as https://unpkg.com/url-search-params right away, since unpkg rightly uses the browser field to serve files to browsers, not to server CJS to bundlers.
What is the expected behavior?
WebPack should use the main CJS field if available, or even module , literally everything but the browser one.
Bug report
What is the current behavior?
WebPack uses the
package.json
browser field, ignoring the main one which is the CommonJS standard field to use.If the current behavior is a bug, please provide the steps to reproduce.
I've updated one of my projects to be usable as https://unpkg.com/url-search-params right away, since unpkg rightly uses the browser field to serve files to browsers, not to server CJS to bundlers.
What is the expected behavior?
WebPack should use the main CJS field if available, or even module , literally everything but the browser one.
Other relevant information:
People filing bugs at my repo due their usage of WebPack as bundler:
WebReflection/url-search-params#34
WebReflection/url-search-params#35
WebReflection/url-search-params#36
Thanks for fixing this.
The text was updated successfully, but these errors were encountered: