I encountered a very strange tool called createjs. When I checked it on npm, it was an empty shell and couldn’t be used. This.createjs= was written directly in this file... It didn’t even include an iife, so I couldn’t install it in the vue component. Import inside, and then I want to import it without using script directly in index.html. As a result, because the module analysis of es6 is done during compilation, if createjs is used in other components, an error will be reported directly saying createjs is not defined.
How should we solve this situation? Please help.
I have answered this question before, and the correct answer is in the comments.
/q/10...