зеркало из https://github.com/electron/electron.git
build: fix filenames autogen with new BUILDFLAG syntax (#23952)
This commit is contained in:
Родитель
2fadb73032
Коммит
b1adbf7fd7
|
@ -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$/,
|
||||
|
|
Загрузка…
Ссылка в новой задаче