Skip to content

docs: add guide for Node.js polyfills (fix #21385)#21917

Open
MananSingh2001 wants to merge 2 commits intovitejs:mainfrom
MananSingh2001:docs/node-polyfills-guide
Open

docs: add guide for Node.js polyfills (fix #21385)#21917
MananSingh2001 wants to merge 2 commits intovitejs:mainfrom
MananSingh2001:docs/node-polyfills-guide

Conversation

@MananSingh2001
Copy link

Fixes #21385.

Currently, the troubleshooting section briefly explains that Node.js modules are not automatically polyfilled, but doesn't show users how to resolve it if they are forced to use a browser-incompatible dependency.

This expands the Module externalized for browser compatibility section to mention common community plugins like vite-plugin-node-polyfills or @rolldown/plugin-node-polyfills, as well as manual resolution using resolve.alias and define.

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.

Docs: explain how to do node polyfills

1 participant