You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Hi 👋, I have been loving using
unplugin
mostly forvite
andesbuild
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 likerollup
,vite
etc. but from what I understand not inesbuild
as it exposesonLoad
internally which runs once per file, andunplugin
uses that when usingtransform
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 ofunplugin
?The text was updated successfully, but these errors were encountered: