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

Vite/Webpack5 doesn't/won't polyfill node builtins for the browser but can be polyfilled with aliasses. #168

Open
kooy opened this issue Jun 16, 2022 · 0 comments

Comments

@kooy
Copy link

kooy commented Jun 16, 2022

Vite/Webpack5 doesn't/won't polyfill node builtins for the browser but can be polyfilled with aliasses. you can use the package the ssr mode on the server

you are getting the warning because the library you are using haven't exported a browser friendly version.
libraries should preferably not be using node builtins.
if a library exports esm format it works best if all its dependencies also have esm export

vitejs/vite#6085

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

No branches or pull requests

1 participant