createjs library cannot be used in es6 environment
PHP中文网
PHP中文网 2017-06-12 09:29:06
0
1
999

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.

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
刘奇

I have answered this question before, and the correct answer is in the comments.
/q/10...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template