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

feat: custom polyfil imports for node #23

Open relu91 opened 6 months ago

relu91 commented 6 months ago

I'm migrating an old project from browserify to esbuild and I found out that I can't override the default polyfils with some custom implementation. I'm not sure if this is not a planned feature, but, given the fact that the implementation seems straightforward, I've added the required changes.

The use case that I have is that I need to override the default readable-stream implementation with the latest release, but it might be helpful also for others.

Futher infos