{"_id":"@blocksquaredev/vite-plugin-node-polyfills","_rev":"4-405c31877a4221e11590c183f8b9c2e1","name":"@blocksquaredev/vite-plugin-node-polyfills","dist-tags":{"latest":"0.25.4"},"versions":{"0.25.1":{"name":"@blocksquaredev/vite-plugin-node-polyfills","version":"0.25.1","keywords":["node","node-core-modules","node-polyfills","node-stdlib","polyfills","vite","vite-plugin"],"author":{"name":"Simon Kruse","email":"simon0x+git@proton.me"},"license":"MIT","_id":"@blocksquaredev/vite-plugin-node-polyfills@0.25.1","maintainers":[{"name":"blocksquaredev","email":"simon.kruse@blocksquare.io"}],"homepage":"https://github.com/davidmyersdev/vite-plugin-node-polyfills","bugs":{"url":"https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues"},"dist":{"shasum":"280c12d437530f9f454d104f949116a17fcd7391","tarball":"https://registry.npmjs.org/@blocksquaredev/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.25.1.tgz","fileCount":29,"integrity":"sha512-LgvWO4teHOBv/PCRN9RhLPSi9w/TVG9llpOMbBzsKhppPvo9qzf3f2Ts9lr6vXrtVOycHpudDz0I4cRrM7bgfQ==","signatures":[{"sig":"MEUCIQCC8we7P7cNZ2dUfzitHxy7mQcT1Jf4HkIkLYV8Y/DOBQIgTGiO1SLqpCxfCn+PSmFepSa7DIl2Hgs1Vb7G70dE5vs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":517078},"main":"./dist/index.cjs","pnpm":{"overrides":{"vite":"^5.0.2","buffer":"6.0.3"},"patchedDependencies":{"buffer@6.0.3":"patches/buffer@6.0.3.patch"}},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./shims":{"import":"./shims/dist/index.js","require":"./shims/dist/index.cjs"},"./shims/buffer":{"import":"./shims/buffer/dist/index.js","require":"./shims/buffer/dist/index.cjs"},"./shims/global":{"import":"./shims/global/dist/index.js","require":"./shims/global/dist/index.cjs"},"./shims/buffer/":{"import":"./shims/buffer/dist/index.js","require":"./shims/buffer/dist/index.cjs"},"./shims/global/":{"import":"./shims/global/dist/index.js","require":"./shims/global/dist/index.cjs"},"./shims/process":{"import":"./shims/process/dist/index.js","require":"./shims/process/dist/index.cjs"},"./shims/process/":{"import":"./shims/process/dist/index.js","require":"./shims/process/dist/index.cjs"}},"funding":"https://github.com/sponsors/davidmyersdev","gitHead":"965ad4c5a3a5ce4eaf1526ee6241c441191c4561","scripts":{"lint":"eslint .","test":"run-p test:build test:error-repros test:unit","build":"run-s build:core build:shims build:types","lint:fix":"eslint --fix .","test:unit":"vitest run --dir ./test","typecheck":"run-p typecheck:*","build:core":"vite build","test:build":"run-p test:build:*","build:shims":"run-p build:shims:*","build:types":"run-s typecheck","test:dev:vue":"pnpm -C ./examples/vue run dev","typecheck:vue":"pnpm -C ./examples/vue run typecheck","test:build:vue":"pnpm -C ./examples/vue run build","test:dev:react":"pnpm -C ./examples/react run dev","typecheck:core":"tsc","typecheck:react":"pnpm -C ./examples/react run typecheck","test:build:react":"pnpm -C ./examples/react run build","test:dev:vanilla":"pnpm -C ./examples/vanilla run dev","test:error-repros":"run-p test:error-repros:*","typecheck:vanilla":"pnpm -C ./examples/vanilla run typecheck","build:shims:buffer":"vite build -c ./shims/vite.config.ts ./shims/buffer","build:shims:global":"vite build -c ./shims/vite.config.ts ./shims/global","test:build:vanilla":"pnpm -C ./examples/vanilla run build","build:shims:process":"vite build -c ./shims/vite.config.ts ./shims/process","test:error-repros:vite-scan-buffer-import-error":"pnpm --filter vite-scan-buffer-import-error test"},"_npmUser":{"name":"blocksquaredev","email":"simon.kruse@blocksquare.io"},"repository":{"url":"git+https://github.com/davidmyersdev/vite-plugin-node-polyfills.git","type":"git"},"_npmVersion":"11.6.2","description":"A Vite plugin to polyfill Node's Core Modules for browser environments.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"node-stdlib-browser":"^1.3.1","@rollup/plugin-inject":"^5.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.1.0+sha256.22e36fba7f4880ecf749a5ca128b8435da085ecd49575e7fb9e64d6bf4fad394","devDependencies":{"vite":"^5.0.2","buffer":"6.0.3","eslint":"^8.54.0","rollup":"^4.6.0","vitest":"^1.2.2","esbuild":"^0.19.8","process":"^0.11.10","vite-node":"^0.34.6","typescript":"4.8.3","@types/node":"^18.18.8","npm-run-all":"^4.1.5","@playwright/test":"^1.40.1","vite-plugin-inspect":"^0.7.42","eslint-config-artisan":"^0.2.1","vite-plugin-node-polyfills":"workspace:*","vite-plugin-externalize-deps":"^0.1.5"},"peerDependencies":{"vite":"^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-node-polyfills_0.25.1_1774528982318_0.28824374131565733","host":"s3://npm-registry-packages-npm-production"}},"0.25.2":{"name":"@blocksquaredev/vite-plugin-node-polyfills","version":"0.25.2","keywords":["node","node-core-modules","node-polyfills","node-stdlib","polyfills","vite","vite-plugin"],"author":{"name":"Simon Kruse","email":"simon0x+git@proton.me"},"license":"MIT","_id":"@blocksquaredev/vite-plugin-node-polyfills@0.25.2","maintainers":[{"name":"blocksquaredev","email":"simon.kruse@blocksquare.io"}],"homepage":"https://github.com/davidmyersdev/vite-plugin-node-polyfills","bugs":{"url":"https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues"},"dist":{"shasum":"7fe755b337ecce20879d14ffc7860a433859a05e","tarball":"https://registry.npmjs.org/@blocksquaredev/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.25.2.tgz","fileCount":29,"integrity":"sha512-MgfMNqWBuVjUZrDLo1T4GG++GrgwEvFdX60CvPemHDjjP0cqp3vFB+RNFeKZ2AFPXi42HAh+9Bz4Wx3c32t+sA==","signatures":[{"sig":"MEUCIQDInyfzJnuqR663lcTHMGxUkKtZpCBtpCAOhByljE8OsgIgd3IHip6jC8IWknTwBLZBsZyVJzgctmdhMhKPPX5Wr1A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":517846},"main":"./dist/index.cjs","pnpm":{"overrides":{"vite":"^5.0.2","buffer":"6.0.3"},"patchedDependencies":{"buffer@6.0.3":"patches/buffer@6.0.3.patch"}},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./shims":{"import":"./shims/dist/index.js","require":"./shims/dist/index.cjs"},"./shims/buffer":{"import":"./shims/buffer/dist/index.js","require":"./shims/buffer/dist/index.cjs"},"./shims/global":{"import":"./shims/global/dist/index.js","require":"./shims/global/dist/index.cjs"},"./shims/buffer/":{"import":"./shims/buffer/dist/index.js","require":"./shims/buffer/dist/index.cjs"},"./shims/global/":{"import":"./shims/global/dist/index.js","require":"./shims/global/dist/index.cjs"},"./shims/process":{"import":"./shims/process/dist/index.js","require":"./shims/process/dist/index.cjs"},"./shims/process/":{"import":"./shims/process/dist/index.js","require":"./shims/process/dist/index.cjs"}},"funding":"https://github.com/sponsors/davidmyersdev","gitHead":"965ad4c5a3a5ce4eaf1526ee6241c441191c4561","scripts":{"lint":"eslint .","test":"run-p test:build test:error-repros test:unit","build":"run-s build:core build:shims build:types","lint:fix":"eslint --fix .","test:unit":"vitest run --dir ./test","typecheck":"run-p typecheck:*","build:core":"vite build","test:build":"run-p test:build:*","build:shims":"run-p build:shims:*","build:types":"run-s typecheck","test:dev:vue":"pnpm -C ./examples/vue run dev","typecheck:vue":"pnpm -C ./examples/vue run typecheck","test:build:vue":"pnpm -C ./examples/vue run build","test:dev:react":"pnpm -C ./examples/react run dev","typecheck:core":"tsc","typecheck:react":"pnpm -C ./examples/react run typecheck","test:build:react":"pnpm -C ./examples/react run build","test:dev:vanilla":"pnpm -C ./examples/vanilla run dev","test:error-repros":"run-p test:error-repros:*","typecheck:vanilla":"pnpm -C ./examples/vanilla run typecheck","build:shims:buffer":"vite build -c ./shims/vite.config.ts ./shims/buffer","build:shims:global":"vite build -c ./shims/vite.config.ts ./shims/global","test:build:vanilla":"pnpm -C ./examples/vanilla run build","build:shims:process":"vite build -c ./shims/vite.config.ts ./shims/process","test:error-repros:vite-scan-buffer-import-error":"pnpm --filter vite-scan-buffer-import-error test"},"_npmUser":{"name":"blocksquaredev","email":"simon.kruse@blocksquare.io"},"repository":{"url":"git+https://github.com/davidmyersdev/vite-plugin-node-polyfills.git","type":"git"},"_npmVersion":"11.6.2","description":"A Vite plugin to polyfill Node's Core Modules for browser environments.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"node-stdlib-browser":"^1.3.1","@rollup/plugin-inject":"^5.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.1.0+sha256.22e36fba7f4880ecf749a5ca128b8435da085ecd49575e7fb9e64d6bf4fad394","devDependencies":{"vite":"^5.0.2","buffer":"6.0.3","eslint":"^8.54.0","rollup":"^4.6.0","vitest":"^1.2.2","esbuild":"^0.19.8","process":"^0.11.10","vite-node":"^0.34.6","typescript":"4.8.3","@types/node":"^18.18.8","npm-run-all":"^4.1.5","@playwright/test":"^1.40.1","vite-plugin-inspect":"^0.7.42","eslint-config-artisan":"^0.2.1","vite-plugin-node-polyfills":"workspace:*","vite-plugin-externalize-deps":"^0.1.5"},"peerDependencies":{"vite":"^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-node-polyfills_0.25.2_1774529300327_0.03605789449204311","host":"s3://npm-registry-packages-npm-production"}},"0.25.3":{"name":"@blocksquaredev/vite-plugin-node-polyfills","version":"0.25.3","keywords":["node","node-core-modules","node-polyfills","node-stdlib","polyfills","vite","vite-plugin"],"author":{"name":"Simon Kruse","email":"simon0x+git@proton.me"},"license":"MIT","_id":"@blocksquaredev/vite-plugin-node-polyfills@0.25.3","maintainers":[{"name":"blocksquaredev","email":"simon.kruse@blocksquare.io"}],"homepage":"https://github.com/davidmyersdev/vite-plugin-node-polyfills","bugs":{"url":"https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues"},"dist":{"shasum":"d24a4701b7cdd57a833ee53fc7417b52538c70ef","tarball":"https://registry.npmjs.org/@blocksquaredev/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.25.3.tgz","fileCount":29,"integrity":"sha512-zl/mHF/14dQ8O9K3WcTkBPS6rqQ19axI0Oy8iHFuK3cGRMGyApPtpzhGnaDkZTaqsFC+T5lAsi5cbX1Dz8nQXQ==","signatures":[{"sig":"MEUCIQCRSB7N4L1YGL73ku6xaym8z+T3CK4r3KxDMlMKLmTGxgIgeT4GCPVu12pECI+fC92IB2zKyPMRKnlvqh6ycaciyI8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":517853},"main":"./dist/index.cjs","pnpm":{"overrides":{"vite":"^5.0.2","buffer":"6.0.3"},"patchedDependencies":{"buffer@6.0.3":"patches/buffer@6.0.3.patch"}},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./shims":{"default":"./shims/dist/index.js","require":"./shims/dist/index.cjs"},"./shims/buffer":{"default":"./shims/buffer/dist/index.js","require":"./shims/buffer/dist/index.cjs"},"./shims/global":{"default":"./shims/global/dist/index.js","require":"./shims/global/dist/index.cjs"},"./shims/buffer/":{"default":"./shims/buffer/dist/index.js","require":"./shims/buffer/dist/index.cjs"},"./shims/global/":{"default":"./shims/global/dist/index.js","require":"./shims/global/dist/index.cjs"},"./shims/process":{"default":"./shims/process/dist/index.js","require":"./shims/process/dist/index.cjs"},"./shims/process/":{"default":"./shims/process/dist/index.js","require":"./shims/process/dist/index.cjs"}},"funding":"https://github.com/sponsors/davidmyersdev","gitHead":"965ad4c5a3a5ce4eaf1526ee6241c441191c4561","scripts":{"lint":"eslint .","test":"run-p test:build test:error-repros test:unit","build":"run-s build:core build:shims build:types","lint:fix":"eslint --fix .","test:unit":"vitest run --dir ./test","typecheck":"run-p typecheck:*","build:core":"vite build","test:build":"run-p test:build:*","build:shims":"run-p build:shims:*","build:types":"run-s typecheck","test:dev:vue":"pnpm -C ./examples/vue run dev","typecheck:vue":"pnpm -C ./examples/vue run typecheck","test:build:vue":"pnpm -C ./examples/vue run build","test:dev:react":"pnpm -C ./examples/react run dev","typecheck:core":"tsc","typecheck:react":"pnpm -C ./examples/react run typecheck","test:build:react":"pnpm -C ./examples/react run build","test:dev:vanilla":"pnpm -C ./examples/vanilla run dev","test:error-repros":"run-p test:error-repros:*","typecheck:vanilla":"pnpm -C ./examples/vanilla run typecheck","build:shims:buffer":"vite build -c ./shims/vite.config.ts ./shims/buffer","build:shims:global":"vite build -c ./shims/vite.config.ts ./shims/global","test:build:vanilla":"pnpm -C ./examples/vanilla run build","build:shims:process":"vite build -c ./shims/vite.config.ts ./shims/process","test:error-repros:vite-scan-buffer-import-error":"pnpm --filter vite-scan-buffer-import-error test"},"_npmUser":{"name":"blocksquaredev","email":"simon.kruse@blocksquare.io"},"repository":{"url":"git+https://github.com/davidmyersdev/vite-plugin-node-polyfills.git","type":"git"},"_npmVersion":"11.6.2","description":"A Vite plugin to polyfill Node's Core Modules for browser environments.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"node-stdlib-browser":"^1.3.1","@rollup/plugin-inject":"^5.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.1.0+sha256.22e36fba7f4880ecf749a5ca128b8435da085ecd49575e7fb9e64d6bf4fad394","devDependencies":{"vite":"^5.0.2","buffer":"6.0.3","eslint":"^8.54.0","rollup":"^4.6.0","vitest":"^1.2.2","esbuild":"^0.19.8","process":"^0.11.10","vite-node":"^0.34.6","typescript":"4.8.3","@types/node":"^18.18.8","npm-run-all":"^4.1.5","@playwright/test":"^1.40.1","vite-plugin-inspect":"^0.7.42","eslint-config-artisan":"^0.2.1","vite-plugin-node-polyfills":"workspace:*","vite-plugin-externalize-deps":"^0.1.5"},"peerDependencies":{"vite":"^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-node-polyfills_0.25.3_1774529468728_0.30822839301450733","host":"s3://npm-registry-packages-npm-production"}},"0.25.4":{"name":"@blocksquaredev/vite-plugin-node-polyfills","type":"module","version":"0.25.4","packageManager":"pnpm@9.1.0+sha256.22e36fba7f4880ecf749a5ca128b8435da085ecd49575e7fb9e64d6bf4fad394","description":"A Vite plugin to polyfill Node's Core Modules for browser environments.","author":{"name":"Simon Kruse","email":"simon0x+git@proton.me"},"license":"MIT","funding":"https://github.com/sponsors/davidmyersdev","homepage":"https://github.com/davidmyersdev/vite-plugin-node-polyfills","repository":{"type":"git","url":"git+https://github.com/davidmyersdev/vite-plugin-node-polyfills.git"},"keywords":["node","node-core-modules","node-polyfills","node-stdlib","polyfills","vite","vite-plugin"],"exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.js"},"./shims":{"module":"./shims/dist/index.js","browser":"./shims/dist/index.js","require":"./shims/dist/index.cjs","import":"./shims/dist/index.js","default":"./shims/dist/index.js"},"./shims/buffer":{"module":"./shims/buffer/dist/index.js","browser":"./shims/buffer/dist/index.js","require":"./shims/buffer/dist/index.cjs","import":"./shims/buffer/dist/index.js","default":"./shims/buffer/dist/index.js"},"./shims/buffer/":{"module":"./shims/buffer/dist/index.js","browser":"./shims/buffer/dist/index.js","require":"./shims/buffer/dist/index.cjs","import":"./shims/buffer/dist/index.js","default":"./shims/buffer/dist/index.js"},"./shims/global":{"module":"./shims/global/dist/index.js","browser":"./shims/global/dist/index.js","require":"./shims/global/dist/index.cjs","import":"./shims/global/dist/index.js","default":"./shims/global/dist/index.js"},"./shims/global/":{"module":"./shims/global/dist/index.js","browser":"./shims/global/dist/index.js","require":"./shims/global/dist/index.cjs","import":"./shims/global/dist/index.js","default":"./shims/global/dist/index.js"},"./shims/process":{"module":"./shims/process/dist/index.js","browser":"./shims/process/dist/index.js","require":"./shims/process/dist/index.cjs","import":"./shims/process/dist/index.js","default":"./shims/process/dist/index.js"},"./shims/process/":{"module":"./shims/process/dist/index.js","browser":"./shims/process/dist/index.js","require":"./shims/process/dist/index.cjs","import":"./shims/process/dist/index.js","default":"./shims/process/dist/index.js"}},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"run-s build:core build:shims build:types","build:core":"vite build","build:shims":"run-p build:shims:*","build:shims:buffer":"vite build -c ./shims/vite.config.ts ./shims/buffer","build:shims:global":"vite build -c ./shims/vite.config.ts ./shims/global","build:shims:process":"vite build -c ./shims/vite.config.ts ./shims/process","build:types":"run-s typecheck","lint":"eslint .","lint:fix":"eslint --fix .","test":"run-p test:build test:error-repros test:unit","test:build":"run-p test:build:*","test:build:react":"pnpm -C ./examples/react run build","test:build:vanilla":"pnpm -C ./examples/vanilla run build","test:build:vue":"pnpm -C ./examples/vue run build","test:dev:react":"pnpm -C ./examples/react run dev","test:dev:vanilla":"pnpm -C ./examples/vanilla run dev","test:dev:vue":"pnpm -C ./examples/vue run dev","test:error-repros":"run-p test:error-repros:*","test:error-repros:vite-scan-buffer-import-error":"pnpm --filter vite-scan-buffer-import-error test","test:unit":"vitest run --dir ./test","typecheck":"run-p typecheck:*","typecheck:core":"tsc","typecheck:react":"pnpm -C ./examples/react run typecheck","typecheck:vanilla":"pnpm -C ./examples/vanilla run typecheck","typecheck:vue":"pnpm -C ./examples/vue run typecheck"},"peerDependencies":{"vite":"^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"},"dependencies":{"@rollup/plugin-inject":"^5.0.5","node-stdlib-browser":"^1.3.1"},"devDependencies":{"@playwright/test":"^1.40.1","@types/node":"^18.18.8","buffer":"6.0.3","esbuild":"^0.19.8","eslint":"^8.54.0","eslint-config-artisan":"^0.2.1","npm-run-all":"^4.1.5","process":"^0.11.10","rollup":"^4.6.0","typescript":"4.8.3","vite":"^5.0.2","vite-node":"^0.34.6","vite-plugin-externalize-deps":"^0.1.5","vite-plugin-inspect":"^0.7.42","vite-plugin-node-polyfills":"workspace:*","vitest":"^1.2.2"},"publishConfig":{"access":"public"},"pnpm":{"overrides":{"buffer":"6.0.3","vite":"^5.0.2"},"patchedDependencies":{"buffer@6.0.3":"patches/buffer@6.0.3.patch"}},"gitHead":"965ad4c5a3a5ce4eaf1526ee6241c441191c4561","_id":"@blocksquaredev/vite-plugin-node-polyfills@0.25.4","bugs":{"url":"https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues"},"_nodeVersion":"22.21.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-7XNXInIAitfG69t0V7ika9HaeHJJu0jZs85nHn/DhPrg17fWFjwKiTeocVZbgV0gvg5ais9E83KDvY5w1ZVEBA==","shasum":"26eb8ac98dceb46c12c3c41c353bab590c4dc205","tarball":"https://registry.npmjs.org/@blocksquaredev/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.25.4.tgz","fileCount":29,"unpackedSize":518853,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCi6APdk2pRUi3hydLZW65UGnjBhrTZHZfwAJD8dYjCnAIhAKhnIeNDDzCy6TN+PUm1vSWJMW3qlWb3ThODUoaDqrFl"}]},"_npmUser":{"name":"blocksquaredev","email":"simon.kruse@blocksquare.io"},"directories":{},"maintainers":[{"name":"blocksquaredev","email":"simon.kruse@blocksquare.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite-plugin-node-polyfills_0.25.4_1774529676416_0.7474756639606384"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-26T12:43:02.241Z","modified":"2026-03-26T12:54:36.721Z","0.25.1":"2026-03-26T12:43:02.530Z","0.25.2":"2026-03-26T12:48:20.507Z","0.25.3":"2026-03-26T12:51:08.925Z","0.25.4":"2026-03-26T12:54:36.577Z"},"bugs":{"url":"https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues"},"author":{"name":"Simon Kruse","email":"simon0x+git@proton.me"},"license":"MIT","homepage":"https://github.com/davidmyersdev/vite-plugin-node-polyfills","keywords":["node","node-core-modules","node-polyfills","node-stdlib","polyfills","vite","vite-plugin"],"repository":{"type":"git","url":"git+https://github.com/davidmyersdev/vite-plugin-node-polyfills.git"},"description":"A Vite plugin to polyfill Node's Core Modules for browser environments.","maintainers":[{"name":"blocksquaredev","email":"simon.kruse@blocksquare.io"}],"readme":"# @blocksquaredev/vite-plugin-node-polyfills\n\n> Fork of [davidmyersdev/vite-plugin-node-polyfills](https://github.com/davidmyersdev/vite-plugin-node-polyfills) with Vite 8+ support.\n>\n> Vite 8 replaced esbuild with OXC/Rolldown for JS transforms. This fork patches the plugin to use `oxc.jsxInject` instead of `esbuild.banner` when Rolldown is detected.\n\nA Vite plugin to polyfill Node's Core Modules for browser environments. Supports [`node:` protocol imports](https://nodejs.org/dist/latest-v16.x/docs/api/esm.html#node-imports).\n\n## Why do I need this?\n\n```\nModule \"stream\" has been externalized for browser compatibility. Cannot access \"stream.Readable\" in client code.\n```\n\nSince browsers do not support Node's [Core Modules](https://nodejs.org/dist/latest-v16.x/docs/api/modules.html#core-modules), packages that use them must be polyfilled to function in browser environments. In an attempt to prevent runtime errors, Vite produces [errors](https://github.com/vitejs/vite/issues/9200) or [warnings](https://github.com/vitejs/vite/pull/9837) when your code references builtin modules such as `fs` or `path`.\n\n## Getting Started\n\nInstall the package as a dev dependency.\n\n```sh\n# npm\nnpm install --save-dev @blocksquaredev/vite-plugin-node-polyfills\n\n# pnpm\npnpm install --save-dev @blocksquaredev/vite-plugin-node-polyfills\n\n# yarn\nyarn add --dev @blocksquaredev/vite-plugin-node-polyfills\n```\n\nAdd the plugin to your `vite.config.ts` file.\n\n```ts\nimport { defineConfig } from 'vite'\nimport { nodePolyfills } from '@blocksquaredev/vite-plugin-node-polyfills'\n\n// https://vitejs.dev/config/\nexport default defineConfig({\n  plugins: [\n    nodePolyfills(),\n  ],\n})\n```\n\n### Customizable when you need it\n\nThe following options are available to customize it for your needs.\n\n```ts\nimport { defineConfig } from 'vite'\nimport { nodePolyfills } from '@blocksquaredev/vite-plugin-node-polyfills'\n\n// https://vitejs.dev/config/\nexport default defineConfig({\n  plugins: [\n    nodePolyfills({\n      // To add only specific polyfills, add them here. If no option is passed, adds all polyfills\n      include: ['path'],\n      // To exclude specific polyfills, add them to this list. Note: if include is provided, this has no effect\n      exclude: [\n        'http', // Excludes the polyfill for `http` and `node:http`.\n      ],\n      // Whether to polyfill specific globals.\n      globals: {\n        Buffer: true, // can also be 'build', 'dev', or false\n        global: true,\n        process: true,\n      },\n      // Override the default polyfills for specific modules.\n      overrides: {\n        // Since `fs` is not supported in browsers, we can use the `memfs` package to polyfill it.\n        fs: 'memfs',\n      },\n      // Whether to polyfill `node:` protocol imports.\n      protocolImports: true,\n    }),\n  ],\n})\n```\n\n### All polyfills\n\n- If protocolImports is true, also adds node:[module]\n\n```js\n[\n  '_stream_duplex',\n  '_stream_passthrough',\n  '_stream_readable',\n  '_stream_transform',\n  '_stream_writable',\n  'assert',\n  'buffer',\n  'child_process',\n  'cluster',\n  'console',\n  'constants',\n  'crypto',\n  'dgram',\n  'dns',\n  'domain',\n  'events',\n  'fs',\n  'http',\n  'http2',\n  'https',\n  'module',\n  'net',\n  'os',\n  'path',\n  'process',\n  'punycode',\n  'querystring',\n  'readline',\n  'repl',\n  'stream',\n  'string_decoder',\n  'sys',\n  'timers',\n  'timers/promises',\n  'tls',\n  'tty',\n  'url',\n  'util',\n  'vm',\n  'zlib',\n]\n```\n","readmeFilename":"README.md"}