-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
feat: add browser ESM build #7110
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #7110 +/- ##
====================================
Coverage 100% 100%
====================================
Files 99 99
Lines 4081 3999 -82
====================================
- Hits 4081 3999 -82
Continue to review full report at Codecov.
|
Thanks @yyx990803 , the new |
Is this meant to be for development only? I see things like |
Having the same question as @damianpeterson: will you add a from https://github.com/vuejs/vue/tree/dev/dist#development-vs-production-mode:
But with ESM in the browser we won't necessarily need bundlers anymore (depending on the project and its audience). For what I'm working on, I don't need template pre-compilation and runtime-only, but I would prefer a minified version ( |
I am already using this bundle in my project and can say that is working as expected. I am not sure why this file is already available after |
Is there a way we could get a beta build of the esm browser version of this for internal testing purposes? (ie, as beta testers perhaps?) |
Landed as f2fd44b |
Seems like latest versions aren't published as ES modules anymore. Opening Vue.js https://unpkg.com/vue@2.5.21/dist/vue.esm.browser.js says it's a Or is it only wrong comment "banner"? I believe using this build with dev tools also picked |
@zigomir these files were actually published by mistake - they were built on a different branch and accidentally published. Actual ESM browser build won't land until 2.6. |
I see. Thanks! |
Adding a new dist file
vue.esm.browser.js
which enables direct import in ESM-enabled browsers: