joeldenning / vite-single-spa-example

MIT License
63 stars 25 forks source link

[QUESTION] Improve example with externals shared deps #14

Open ChristPetitjean opened 2 years ago

ChristPetitjean commented 2 years ago

Hello,

Is it possible to improve the example to show how to configure VITE with external single-spa utility module ? I can't get this to work.

Regards,

Wifsimster commented 1 year ago

Same things here ! Cannot get using a utility module (api) in a Vite.js single-spa application :(

barbinbrad commented 1 year ago

Same here. Would like to use a styleguide-type SystemJS import from the root config. Not sure how to go about it. I've tried rollup's external config, and vite external plugin, but none seems to work. Any advice you can give would be greatly apprecaited.

cretumarius commented 1 year ago

Same here! It seems that with rollup external it works if I inject the bundled js but it's not working for local development. Already tried:

eduardo-da-silva commented 1 year ago

Anyone have success using vite + utility. I'm not able to use SystemJS. And by using module-shims, it seems that was not possible to import an utility function.

Wifsimster commented 1 year ago

I personaly switch to module federation. Imo, Single SPA is not production ready.

builpro commented 1 year ago

@eduardo-da-silva same problems...😣