From b1adbf7fd7630457982b64737b88f2298ba93152 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 3 Jun 2020 15:46:59 -0700 Subject: [PATCH] build: fix filenames autogen with new BUILDFLAG syntax (#23952) --- build/webpack/webpack.config.base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/webpack/webpack.config.base.js b/build/webpack/webpack.config.base.js index a51df60d61ec..62cb075ff027 100644 --- a/build/webpack/webpack.config.base.js +++ b/build/webpack/webpack.config.base.js @@ -21,7 +21,7 @@ class AccessDependenciesPlugin { } const defines = { - BUILDFLAG: '' + BUILDFLAG: onlyPrintingGraph ? '(a => a)' : '' } const buildFlagsPrefix = '--buildflags=' @@ -95,7 +95,7 @@ module.exports = ({ }, module: { rules: [{ - test: (moduleName) => ignoredModules.includes(moduleName), + test: (moduleName) => !onlyPrintingGraph && ignoredModules.includes(moduleName), loader: 'null-loader', }, { test: /\.ts$/,