Replies: 1 comment
-
I don't think you can use Vite with SystemJS in development-time. I tried it already some time ago, but ended up in a situation where my built/production code was correct (when configured to output as SystemJS), but my development build was not (this is, if I'm not forgetting things here, because Vite uses ES modules in development builds, as used by HMR functionality, independent of build configuration). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello does anyone have an example project with Vite as root / orchestrator application.
I managed to set up the followings:
my index.html looks something like this:
and using the vite example application as MF App: https://github.com/joeldenning/vite-single-spa-example/blob/main/src/main.js
but when starting the root app as npm run dev or build i get an error that i can use import outside of modules.
Does anyone have experience with this?
Beta Was this translation helpful? Give feedback.
All reactions