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

esbuild alternative #136

Open
bauer01 opened this issue Aug 11, 2021 · 4 comments
Open

esbuild alternative #136

bauer01 opened this issue Aug 11, 2021 · 4 comments

Comments

@bauer01
Copy link

bauer01 commented Aug 11, 2021

Hi,
is there any option to use this with esbuild or it's webpack only?

@hishammalik
Copy link

Any feedback? Or should we consider translating code from pug to jsx?

@ChildishGiant
Copy link

There's esbuild-plugin-pug made by @adamjberg (although not on their github for some reason)

@adamjberg
Copy link

adamjberg commented Oct 19, 2022

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.

@ymulenll
Copy link

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.

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

5 participants