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
{{ message }}
Repository navigation
Speed up vite-plugin-solid with vite hook filters #259
exportdefaultfunctionmyPlugin(){return{name: 'example',transform(code,id){if(!id.endsWith('.data')){// early returnreturn}// perform actual transformreturntransformedCode},}}
into this
exportdefaultfunctionmyPlugin(){return{name: 'example',transform: {filter: {id: /\.data$/},handler(code){// perform actual transformreturntransformedCode},}}}
Backward compatibility
The syntax has supported since vite 6.3+ and could be made backward compatible by leaving the checks in the handlers.
@brenelz I provided an implementation in #337 . Let me know if anything needs fixing. There is backward compatibilty, so this should be good for a minor/patch release.
Activity
brenelz commentedon Jul 16, 2026
Yeah I think we'd be open to a PR around this
ChristophP commentedon Sep 1, 2026
@brenelz I provided an implementation in #337 . Let me know if anything needs fixing. There is backward compatibilty, so this should be good for a minor/patch release.