This is because it bundlerintelligently understands your source code for a package that searches for global variables.. In the end, the (generated) code of your package (i.e. the one that actually loads into the browser) precedes something like:
var A;
which should open everything;)
, , , @sbking, package.js :
Package.onUse(function (api) {
api.export('A');
});
, use strict , Meteor , api.export. , , .
, , , undefined , . .
use strict :
// globals.js
// no "use strict" statement here ...
MyPrivateVariable1 = null;
MyPrivateVariable2 = null;