mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
treat exports from debugOnly packages same way that we treat weak dependencies and do not export them by default
This commit is contained in:
@@ -132,14 +132,15 @@ _.extend(Unibuild.prototype, {
|
||||
// packages get precedence.
|
||||
//
|
||||
// We don't get imports from unordered dependencies (since they may not be
|
||||
// defined yet) or from weak dependencies (because the meaning of a name
|
||||
// shouldn't be affected by the non-local decision of whether or not an
|
||||
// unrelated package in the target depends on something).
|
||||
// defined yet) or from weak/debugOnly dependencies (because the meaning of
|
||||
// a name shouldn't be affected by the non-local decision of whether or not
|
||||
// an unrelated package in the target depends on something).
|
||||
var imports = {}; // map from symbol to supplying package name
|
||||
compiler.eachUsedUnibuild(
|
||||
self.uses,
|
||||
bundleArch, loader,
|
||||
{skipUnordered: true}, function (depUnibuild) {
|
||||
{ skipUnordered: true, skipDebugOnly: true },
|
||||
function (depUnibuild) {
|
||||
_.each(depUnibuild.packageVariables, function (symbol) {
|
||||
// Slightly hacky implementation of test-only exports.
|
||||
if (symbol.export === true ||
|
||||
|
||||
Reference in New Issue
Block a user