refactor: modular plugins

#1145

Pull request

Merged
D
dominikg
Jun 22, 2025, 3:16 PM

this grew rather large but sharing for better discussion

goals:

  • split into multiple plugins with clear responsibilities
  • separate plugins for preprocess and compile
  • fully embrace/adopt environment api
  • improve filter use to ensure less work is done in rolldown-vite
  • move plugins out of "pre" phase where possible

Todo:

  • Documentation about the preprocess/compile change and how to use it to transform preprocessor output with a vite plugin before compile
  • deprecate api.sveltePreprocess with link to above docs
  • discuss removing custom query support. lots of code/complication for no usage

Info

Merged at Jul 2, 2025, 9:52 AM
Merged by dominikg
Assignees None
Reviewers None
Labels None
Milestone None