Browse Source

build: fix filenames autogen with new BUILDFLAG syntax (#23952)

Samuel Attard 4 years ago
parent
commit
b1adbf7fd7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      build/webpack/webpack.config.base.js

+ 2 - 2
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$/,