cyco130 / esbuild-plugin-polyfill-node

ESBuild plugin to polyfill Node.js built-ins geared towards edge environments.
MIT License
52 stars 8 forks source link

Modern node polyfills #2

Closed Aslemammad closed 1 year ago

Aslemammad commented 1 year ago

I wanted to mention that I worked on something called modern-node-polyfills that is based on the modern jspm node polyfills (which work really well in production). You can consider using it under the hood of this tool.

cyco130 commented 1 year ago

Awesome, thanks!

I know some of the browserify polyfills are a bit old, good to know jspm has replacements. They also add a few missing pieces like fs/promises. After I add proper tests, I can add a jspm option to use their versions and maybe even make it default.

Aslemammad commented 1 year ago

Yep, feel free to do so! Thanks.

cyco130 commented 1 year ago

Hi, I did switch to JSPM polyfills but I decided to resolve them myself directly instead of using an intermediate library.

Thank you for showing me they existed!

Aslemammad commented 1 year ago

I appreciate it!

On Fri, 31 Mar 2023, 21:29 Fatih Aygün, @.***> wrote:

Closed #2 https://github.com/cyco130/esbuild-plugin-polyfill-node/issues/2 as completed.

— Reply to this email directly, view it on GitHub https://github.com/cyco130/esbuild-plugin-polyfill-node/issues/2#event-8900563388, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBMICEH3IGCVKFAHPCOBBLW64LQNANCNFSM6AAAAAARMVADVY . You are receiving this because you authored the thread.Message ID: <cyco130/esbuild-plugin-polyfill-node/issue/2/issue_event/8900563388@ github.com>