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

Provide self-contained vue-router ESM production build #1658

Closed
roeltz opened this issue Jan 9, 2023 · 2 comments
Closed

Provide self-contained vue-router ESM production build #1658

roeltz opened this issue Jan 9, 2023 · 2 comments

Comments

@roeltz
Copy link

roeltz commented Jan 9, 2023

What problem does this feature solve?

I'm trying to develop an application with a CDN approach to dependencies, and while the ESM production build for Vue itself works as expected without complications, VueRouter's ESM browser build is not a minfied resource and makes requests for many more dependencies (which also need an additional importmap entry for @vue/devtools-api). I've tried the global build vue-router.global.prod.js (even with some modifications on top), but the workarounds needed to make it work defeat the purpose of having an ESM-only architecture in the first place.

What does the proposed API look like?

For this, it would be ideal to have a proper production build, without any dependencies or instrumentation for DevTools (or have them inlined in the bundle), with a size comparable to that of vue-router.global.prod.js

@posva
Copy link
Member

posva commented Jan 9, 2023

Duplicate of #694

@posva posva marked this as a duplicate of #694 Jan 9, 2023
@posva posva closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2023
@posva
Copy link
Member

posva commented Jan 9, 2023

Unfortunately, given the existing restrictions for importing other packages, this won't be doable. Instead, one has to rely on solutions like skypack

@vuejs vuejs locked and limited conversation to collaborators Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants