Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix rollup not respecting 'browser' field #283

Closed

Conversation

FallenMax
Copy link

@FallenMax FallenMax commented May 28, 2020

Some libs are using package.json#browser field to differentiate server/browser implementation (e.g. axios). Without setting browser: true, @rollup/plugin-node-resolve will resolve with default files and results in code like import 'http' in browser.

This PR also upgrades @rollup/plugin-commonjs because it handles some commonjs package better in my case.

@FallenMax
Copy link
Author

duplicate of #231, closing

@FallenMax FallenMax closed this May 28, 2020
@FallenMax FallenMax deleted the rollup-respect-browser-field branch May 29, 2020 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant