Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this a solution for Vite ESM? #1194

Closed
krkaa opened this issue Feb 8, 2024 · 4 comments
Closed

Is this a solution for Vite ESM? #1194

krkaa opened this issue Feb 8, 2024 · 4 comments

Comments

@krkaa
Copy link

krkaa commented Feb 8, 2024

If we try to use es-module-shims in the root HTML and then ignore static imports with this solution, then the esm modules will work fine. What do you think about this?

@krkaa krkaa changed the title Is there solution for vite esm? Is this a solution for Vite ESM? Feb 8, 2024
@MilanKovacic
Copy link
Collaborator

You can use my plugin https://github.com/MilanKovacic/vite-plugin-externalize-dependencies which is a bit more robust and flexible.

@krkaa
Copy link
Author

krkaa commented Feb 8, 2024

@MilanKovacic I tried to use your plugin, but I had errors

@MilanKovacic
Copy link
Collaborator

It is hard to help without knowing the specific error you encountered. You can try https://github.com/WJSoftware/vite-plugin-single-spa. Vite setup requires more involvement compared to webpack where you can use create-single-spa.

@MilanKovacic
Copy link
Collaborator

This issue is being closed due to inactivity. If the problem persists or if you have further insights, please do not hesitate to open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants