Skip to content

Does this support running in dev mode? #150

Answered by webJose
JontyMC asked this question in Q&A
Discussion options

You must be logged in to vote

I quickly reviewed your sample. Your Vite project will bundle in ESM format, but your root config is set to use webpack and bundle in the SystemJS module format. This mismatch clearly won't work. If you create your root config project using the tool from the single-spa team, you must then set your Vite project to also output in the SystemJS module format. HOWEVER, Vite cannot deliver in SystemJS format when run in serve mode npm run dev.

This is why all my documentation doesn't even tell you to use the single-spa team's tooling. It is far easier to just use this plug-in in all-ESM format. Read my blog carefully to learn how to do this.

If you want to create a root config project that is V…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@JontyMC
Comment options

@JontyMC
Comment options

@webJose
Comment options

@webJose
Comment options

Answer selected by webJose
@JontyMC
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants