Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated for the dependancy rollup-plugin-node-polyfills warning to use @rollup/plugin-inject. #35

Open
mrbm opened this issue Feb 26, 2023 · 2 comments

Comments

@mrbm
Copy link

mrbm commented Feb 26, 2023

@esbuild-plugins/node-modules-polyfill is using the dependancy rollup-plugin-node-polyfills which gives the warning that rollup-plugin-node-polyfills is depreciated and should use @rollup/plugin-inject.

Is that by design or just an oversight?

Thanks!

@shellscape
Copy link

Probably a bit of both, as the node-builtins aspect of bundling is hard to maintain and error-prone. This project should use an alternative: https://www.npmjs.com/search?ranking=maintenance&q=rollup%20node

rollup-plugin-inject has been deprecated for 3 years. rollup-plugin-node-polyfills is 4 years out of date.

@mrienstra
Copy link

Note that the README for this repo says (lines 15 & 16):

... so although there is no formal deprecation notice, I wouldn't hold your breath.

On a related note, just ran across this in cloudflare/workers-sdk#3832:

The esbuild-plugins repo itself points towards using esbuild-plugin-polyfill-node instead https://github.com/remorses/esbuild-plugins/blob/373b449/README.md?plain=1#L15-L16 [...]

After doing this in the Remix repo (see remix-run/remix#5274), we got quite some new bugs, so we chose to go for @imranbarbhuiya's esbuild-plugins-node-modules-polyfill instead (see remix-run/remix#6562), which is an up-to-date and well maintained alternative

If you look at the "This was referenced" list at the bottom of remix-run/remix#6562, you can see how a few different repos reacted to a proposed move from @esbuild-plugins/node-modules-polyfill to esbuild-plugins-node-modules-polyfill.

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

No branches or pull requests

3 participants