Skip to content

ES6 module version for the browser #8627

Closed
@megacromulent

Description

@megacromulent

What 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions