Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant