fix: enable missingRequire in build_tasks (#5510)

This commit is contained in:
Rachel Fenichel
2021-09-21 13:19:55 -07:00
committed by GitHub
parent 953e3b67b1
commit d83eb1364b
6 changed files with 30 additions and 22 deletions

View File

@@ -77,8 +77,7 @@ var JSCOMP_ERROR = [
'missingPolyfill',
'missingProperties',
'missingProvide',
// 'missingRequire', As of Jan 8 2021, this enables the strict require check.
// Disabling this until we have fixed all the require issues.
'missingRequire',
'missingReturn',
// 'missingSourcesWarnings',
'moduleLoad',
@@ -397,7 +396,7 @@ function buildLangfiles(done) {
// Create output directory.
const outputDir = path.join(BUILD_DIR, 'msg', 'js');
fs.mkdirSync(outputDir, {recursive: true});
// Run create_messages.py.
let json_files = fs.readdirSync(path.join('msg', 'json'));
json_files = json_files.filter(file => file.endsWith('json') &&