Prevent Meteor From Wrapping Scripts In An Immediately-invoked Function Expression
Meteor will wrap an immediately-invoked function expression (IFFE) around the contents of any JS file, to ensure that there are no namespace conflicts between files. I am at the ve
Solution 1:
If your code is running on the client side, you can simply put it into the client/compatibility
folder. From the meteor docs (http://docs.meteor.com/#/full/structuringyourapp):
client/compatibility
This folder is for compatibility JavaScript libraries that rely on variables declared with var at the top level being exported as globals. Files in this directory are executed without being wrapped in a new variable scope. These files are executed before other client-side JavaScript files.
Post a Comment for "Prevent Meteor From Wrapping Scripts In An Immediately-invoked Function Expression"