why there is this output when using type="module" #11268
Answered
by
LinusBorg
yonecdeng
asked this question in
Help/Questions
-
why there is this output when using type="module"??? |
Beta Was this translation helpful? Give feedback.
Answered by
LinusBorg
Jul 3, 2024
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yonecdeng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
which, in a normal script, creates a global variable, but in a module, this variable will be locally scoped to the module