vite-plugin-node-polyfills
vite-plugin-node-polyfills copied to clipboard
A Vite plugin to polyfill Node's Core Modules for browser environments.
rolldown-vite 7.2.3 has a breaking change (https://github.com/rolldown/rolldown/releases/tag/v1.0.0-beta.48) and this PR changes the code for it. This PR also changes the deprecated `optimizeDeps.rollupOptions` to `optimizeDeps.rolldownOptions`. The new options are only supported...
### Summary I am trying to use a dependency @mastra/core, which imports from "stream/web". I am using vite node polyfills with "stream" in the include array. And yet it still...
### Summary After upgrading from 0.23.0 to 0.24.0 our Storybook CI started failing with the following errors: `Cannot find package 'unenv/node/process' imported from '/builds/x/technology/x/frontend/node_modules/@storybook/addon-vitest/dist/vitest-plugin/global-setup.mjs` ``` 2025-07-18T11:40:47.137036Z 01O [31m[1mCaused by: Error[22m:...
t.cwd = function() { return "/"; };
### Summary Dependabot highlights issue with a dependency on `vite-plugin-node-polyfills` plugin. It come from: vite-plugin-node-polyfills -> node-stdlib-browser -> crypto-browserify -> pbkdf2