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

This commit is contained in:
Samuel Attard 2020-06-03 15:46:59 -07:00 committed by GitHub
parent 2fadb73032
commit b1adbf7fd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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$/,