-
-
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
Importing vue.min.js inside es6 module doesn't work #9273
Comments
That build is not meant to be consumed in a module setup. Why don't use the esm build? If you ineed Vue on |
Use esm build:
|
2.6 will include |
Hi! |
Seems like a sparate issue. |
Version
2.5.21
Reproduction link
https://codepen.io/lucafabbian/pen/EGbJQG?editors=1010
Steps to reproduce
Simply import vue.min.js with es6 import instead of inside a script tag
What is expected?
Vue should load as window.Vue and be available inside the page
What is actually happening?
Since inside modules windows != this (this is undefined) umd loading fails
This bug would be easily fixed replacing
this
withthis || self
in umd header.Also refer to umdjs/umd#124
The text was updated successfully, but these errors were encountered: