Open bauer01 opened 3 years ago
Any feedback? Or should we consider translating code from pug to jsx?
There's esbuild-plugin-pug made by @adamjberg (although not on their github for some reason)
Oops, I don't follow my Github notifications very well. As @ChildishGiant mentioned I've started a plugin for this: https://github.com/adamjberg/esbuild-plugin-pug. This is my first npm package so I have no idea what I'm doing. I've cleaned it up a bit so should have basic details on how to use and correctly link to the repo.
@bauer01 give that a try and let me know if you run in to any issues.
I also created @ymulenll/esbuild-plugin-pug, it's based on esbuild-plugin-pug, but instead of returning HTML, it returns the compiled function. This allows you to pass input data to the template, and it also supports includes
in your templates.
Hi, is there any option to use this with esbuild or it's webpack only?