MilanKovacic / single-spa-vite

Experimental repository of single-spa using Vite, without SystemJS
MIT License
21 stars 1 forks source link

Use vite-plugin-single-spa #1

Open webJose opened 1 year ago

webJose commented 1 year ago

Hi. I just wanted to let you know that vite-plugin-single-spa will do this for you. I am trying to get the Vite guys to create a new Vite plug-in that inserts React's preamble code so we don't have to do what you did here: Create a copy of the code.

MilanKovacic commented 1 year ago

Hi José, this is definitely an interesting project, and I am glad to see the ecosystem moving foward. I will check out your project in detail later. I have created the repository a while ago as an experiment, and have since then developed a lot of tooling around it, which I will try to release soon, and update the repository accordingly.

Regarding the preamble, I don't think the Vite team will create it. For my projects, I have created a simple script that goes through import map overrides and injects preamble accordingly.