Skip to content

why there is this output when using type="module" #11268

Discussion options

You must be logged in to vote

because the global build is meant to be used as a normal script, not as a module.

It assigns Vue to a global variable like this, basically:

var Vue = ......

which, in a normal script, creates a global variable, but in a module, this variable will be locally scoped to the module

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yonecdeng
Comment options

Answer selected by yonecdeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants