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

Supporting esbuild-plugin-pipe #126

Open
AndrewLeedham opened this issue Jun 16, 2022 · 0 comments
Open

Supporting esbuild-plugin-pipe #126

AndrewLeedham opened this issue Jun 16, 2022 · 0 comments

Comments

@AndrewLeedham
Copy link

Hi 👋, I have been loving using unplugin mostly for vite and esbuild plugins in parallel.

One snag that took a while to get my head around is using multiple esbuild plugins to transform some code, this works in piped bundlers like rollup, vite etc. but from what I understand not in esbuild as it exposes onLoad internally which runs once per file, and unplugin uses that when using transform meaning any subsequent plugins won't do anything.

A potential solution seems to be esbuild-plugin-pipe which adds support for compatible plugins to pipe from one to another, passing along the output. Would support for this be considered as part of unplugin?

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

1 participant