Closed
Description
When Vue is a part of a built website that happens to concatenate and minify (only tested with uglify2), and another script adds 'use strict';
to the global scope, the minified Vue.js script throws a JS exception in the part o the script that assigns the library to this.Vue
(this
is undefined).
To recreate:
echo "'use strict';" > vue.min.js; uglifyjs vue.js >> vue.min.js
Then try using vue.min.js
Using the official UMD factory pattern fixes this if I remember correctly
Metadata
Metadata
Assignees
Labels
No labels