ES6 module version for the browser
See original GitHub issueWhat problem does this feature solve?
Allow use of ES6 based module without having to compile. This would allow mixed version use of Vue in a complex system. For example, a CMS could use Vue for part of it’s gui using an ES6 module, and the website owner could include Vue.js as a direct <script> include without conflicts.
This would allow the integration of Vue into larger more complex systems without having constantly battle edge use cases where code would conflict, or micro-manage version differences in a single shared Vue.js instance.
Also, a specific use for us is we’d like to implement Vue a piece at a time, where we have many multiple SPA’s in administration areas, but don’t want the overhead of compiling Vue for each SPA, where an ES6 module could be cached, and loaded on each SPA individually.
What does the proposed API look like?
import esvue from './vue.esm.browser.js';
console.log(esvue);
Add add an official browser based ES6 build. I found this file in the NPM repo: https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.esm.browser.js
From here: https://cdn.jsdelivr.net/npm/vue/dist/
This is the official link to the repo from the Vuejs.org installation page: https://vuejs.org/v2/guide/installation.html#Explanation-of-Different-Builds
And it looks like this idea was attempted, or possibly in development. I want to add my support and request this become a standard version of Vue available with the latest updates.
Thanks!
Edit: We would start implementation tests today if we had a build of the latest version of Vue.js in vue.esm.browser.js
Note: Browser version support is not an issue for our administration tools, so using ES6 modules is ideal as it supports our future development needs as well as future proofing our development environment at the same time as allow us to integrate changes slowly in a complex system.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
It’s going to land.
This is great news, thank you for taking the time to reply to this, Evan. I guess I can’t get anymore authoritative response than this. Have a great day! 😃