From 151e8fa295eaee4d46675d7b59ea32c021c4f54d Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Thu, 24 Mar 2016 20:35:31 -0400 Subject: [PATCH] Silence some noisy missing module warnings. Follow-up to #6562. --- tools/isobuild/compiler-plugin.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/isobuild/compiler-plugin.js b/tools/isobuild/compiler-plugin.js index 22843af72a..07042bd457 100644 --- a/tools/isobuild/compiler-plugin.js +++ b/tools/isobuild/compiler-plugin.js @@ -855,6 +855,13 @@ export class PackageSourceBatch { const warnings = []; _.each(missingNodeModules, (info, id) => { + if (info.packageName === "avital:mocha") { + // Silence warnings for the avital:mocha package, because we know + // they're spurious, and it seems poor form to spew a bunch of + // warnings from a package that we're recommending for testing. + return; + } + if (id in serverLibPackages && archinfo.matches(info.bundleArch, "os")) { // Packages in dev_bundle/server-lib/node_modules can always be @@ -898,6 +905,12 @@ export class PackageSourceBatch { // installing meteor-node-stubs via npm below. id = parts.slice(2).join("/"); } + + } else if (info.packageName) { + // Disable warnings about relative module resolution failures in + // Meteor packages, since there's not much the application + // developer can do about those. + return; } warnings.push(` ${JSON.stringify(id)} in ${