Inversify and Vite Issues
Using Inversify with Vite causes all kinds of issues.
The Inversify docs recommend using unplugin-swc with Vite, but this appears to break these things in the build:
- Vite's
?workerURL syntax doesn't work. The Worker file won't be transpiled.- Using
inlineornew URLdoesn't fix the issue.
- Using
- Minification doesn't work unless specifically installing
terser.
I'm sure there's other sneaky stuff I didn't notice. Your best bet is to use good old-fashioned constructor injection.