davidmyersdev / vite-plugin-node-polyfills

A Vite plugin to polyfill Node's Core Modules for browser environments.
MIT License
263 stars 17 forks source link

rollup-plugin-inject is deprecated, rollup-plugin-node-polyfills is unmaintained #6

Closed milahu closed 1 year ago

milahu commented 1 year ago

https://github.com/ionic-team/rollup-plugin-node-polyfills/pull/32

the repo seems to be dead

https://github.com/remorses/esbuild-plugins/issues/18

@FredKSchott's fork is also recommended by the @rollup team: https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency

https://github.com/cloudflare/wrangler2/issues/1232

Perhaps we could switch to https://github.com/niksy/node-stdlib-browser instead of @esbuild-plugins/node-modules-polyfill?

alternative: https://github.com/sodatea/vite-plugin-node-stdlib-browser ... "just works" : )

davidmyersdev commented 1 year ago

I appreciate the info. I'm definitely liking the looks of niksy/node-stdlib-browser, so I'll likely switch to using that internally. That said, the other open issues surface problems other than old dependencies, so I'm going to close this one in favor of those.