ES2015 module files are executed in strict mode. I think currently there is no way to turn this off (this would also mean you cannot use import/export). So you would need to change your code to fulfill the rules of strict mode.
For example you need to declare globals explicitly. Instead of later = function() { }
you write global.later = function() { }
. Also the “hack” to use this
to reference the global scope is not working I think. I think it would be great if Meteor would alias global
to window
on the client side.
More about strict mode: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode#Changes_in_strict_mode