Big thanks to all the maintainers who pour in countless hours improving the build pipeline for Elixir developers! I cannot say enough how awesome this project is and just how much it's already improved my life ❤️ 💚 💛 💜 💙
In a work project recently I ran into a sticky issue w/ 1 package that isn't very browser friendly. I've since learned how others are working around this in webpack 5 and vite but it would appear esbuild might have an escape hatch as well labeled plugins which would allow someone to swap process, zlib, stream and others with this handy esbuild node polyfill. The last step to test this on my local seems to be that the config/config.exs args don't support plugins
I didn't see an explicit issue for this yet but forgive my duplicate question if this pull request is identical. Again - big thanks, love this project and happy new year 🎊
edit: I just saw this in the readme 😅
You can use esbuild plugins (requires npm). See Phoenix' official guide on using them.
Big thanks to all the maintainers who pour in countless hours improving the build pipeline for Elixir developers! I cannot say enough how awesome this project is and just how much it's already improved my life ❤️ 💚 💛 💜 💙
In a work project recently I ran into a sticky issue w/ 1 package that isn't very browser friendly. I've since learned how others are working around this in webpack 5 and vite but it would appear esbuild might have an escape hatch as well labeled plugins which would allow someone to swap process, zlib, stream and others with this handy esbuild node polyfill. The last step to test this on my local seems to be that the config/config.exs
args
don't supportplugins
> error: Invalid build flag: "--plugins:./node-plugin.js"
I didn't see an explicit issue for this yet but forgive my duplicate question if this pull request is identical. Again - big thanks, love this project and happy new year 🎊
edit: I just saw this in the readme 😅
You can use esbuild plugins (requires npm). See Phoenix' official guide on using them.