Skip to content

Conversation

@monam2
Copy link
Contributor

@monam2 monam2 commented Jan 28, 2026

Fixes #21385

Expand the 'Module externalized for browser compatibility' section with practical guidance on how to add Node.js polyfills when needed.

Includes:

  • Using @rolldown/plugin-node-polyfills plugin with module support table
  • Using vite-plugin-node-polyfills as a community alternative
  • Manual polyfill configuration with resolve.alias and define
  • Table of common polyfill packages
  • Warning about modules with limited browser equivalents
Expand the 'Module externalized for browser compatibility' section with
practical guidance on how to add Node.js polyfills when needed.

Includes:
- Using @rolldown/plugin-node-polyfills plugin with module support table
- Using vite-plugin-node-polyfills as a community alternative
- Manual polyfill configuration with resolve.alias and define
- Table of common polyfill packages
- Warning about modules with limited browser equivalents

Fixes vitejs#21385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant