A Vite (or Rollup) plugin that renders a machine module imported with a ?switchyard=<format> query, adding &export=Name to pick one machine, into a default-exported string at build time. The module and its imports are watched.
?switchyard=<format>
&export=Name
Renders ?switchyard= imports; any other id is left to the next plugin.
?switchyard=
A Vite (or Rollup) plugin that renders a machine module imported with a
?switchyard=<format>query, adding&export=Nameto pick one machine, into a default-exported string at build time. The module and its imports are watched.