-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
[Feature Request] Add ECMAScript module version to the releases #7927
Comments
I'm using ECMAScript Modules everyday. If you guys release a Vuetify ESM, alot of people with use it including me (I'm waiting for this since the release of Vuejs ESM). 👀 |
Please release this @mishamosher did you succeed using vuetify2? How? |
It would be great to have a Vuetify ES Module Browser Build like Vue do :
https://vuejsdevelopers.com/2019/02/04/vue-es-module-browser-build/ |
All our code is with ES Modules, so it will so good to have an official build of vuetify for that! Waiting for that, I use the solution of @mishamosher that seems to work |
I would love to see this in V3 so I can use it with Vite! |
A lot has changed since the initial release of Pika Web. Its CDN is now able to offer ESM versions for a lot more of JavaScript libraries, Vuetify included. As an example, https://cdn.pika.dev/vuetify@2.3.0 offers an ESM for Vuetify version 2.3.0. Its not perfect though, as there are some oddities (skypackjs/skypack-cdn#18). Also, there was a discussion about an ESM version for Buefy here: buefy/buefy#1662. Maybe a similar approach is possible in Vuetify? |
Currently webpack doesn't allow us to export as ESM, so we either have to wait untill webpack 5 comes out and supports it, or move to rollup to bundle this library |
@DRoet webpack or vue-cli is not the only choice! I'm using vite, which only works with ESM. If possible, make the vue3 release with ESM and the webpack way together. |
Vite is basically just rollup under the hood when bundling for production, an ESM build might come with the V3 release of Vuetify |
We'll probably use webpack 5 now that it's out. |
webpack 5 still does not support |
@KaelWD is there any chance to backport esm build for Vuetify 2? |
Vue2.7 now has esm builds, but Vuetify 2 import cjs version, which results into multiple vue error in vitest |
Problem to solve
Right now all the modern major browsers have support for ECMAScript Modules (ESM for short).
It would be awesome if Vuetify released an ESM like vue's
vue.esm.browser.js
.I'd success packing the NPM release of Vuetify as an ESM with the help of Pika Web, and it works just fine for my needs. Obviously, I would prefer an official ESM release.
Proposed solution
I am not a fan of transpilers (TypeScript, SASS, etc., babel). Plain ECMAScript 2016+ and CSS has been enough for my needs this far.
The previous is the reason why I'm unable to easily thinker of a proposed solution for an ESM release of Vuetify, other than using Pika Web.
The text was updated successfully, but these errors were encountered: