Unfortunately this does not work. When I import this into my project I end up with a Uncaught ReferenceError: yii is not defined in the browser, obviously because this code is not strict, and you can not mix strict + non-strict code in a single file.
So I wonder is this supposed to work? And if not, can this be implemented in browserify-shim or am i completely out of luck here?
I try to transform a "module" that defines a variable in the global scope without
var
:Unfortunately this does not work. When I import this into my project I end up with a
Uncaught ReferenceError: yii is not defined
in the browser, obviously because this code is not strict, and you can not mix strict + non-strict code in a single file.So I wonder is this supposed to work? And if not, can this be implemented in browserify-shim or am i completely out of luck here?
Here's the relevant part from my
package.json
: