In my current application I’m moving everything to ES2015 module imports. To ensure that they are working currectly, I’ve made a file in the lib folder for destroying globals, like:
Meteor = ""; sAlert = "";
Now Meteor
and sAlert
will only work properly in files after adding:
import { Meteor } from 'meteor/meteor';
import { sAlert } from 'meteor/juliancwirko:s-alert';
Is there a better way to do this to ensure that my entire project will work without “magical” globals. And is there an estimated time frame on when Meteor will go to this model strictly?