Update source map validator target files (#9133)

All JavaScript files included in the final bundle are now listed as
target files. The `phishing-detect.js` file is the only new file to be
validated that was not validated before.

Any files that are expected to fail validation are commented out, with
a note explaining why they're expected to fail.
feature/default_network_editable
Mark Stacey 4 years ago
parent e17c18ff7d
commit b490da3931
  1. 10
      development/sourcemap-validator.js

@ -20,7 +20,15 @@ start().catch((error) => {
async function start () { async function start () {
const targetFiles = [`inpage.js`, `contentscript.js`, `ui.js`, `background.js`] const targetFiles = [
`background.js`,
// `bg-libs`, skipped because source maps are invalid due to browserify bug: https://github.com/browserify/browserify/issues/1971
// `contentscript.js`, skipped because the validator is erroneously sampling the inlined `inpage.js` script
`inpage.js`,
'phishing-detect.js',
`ui.js`,
// `ui-libs.js`, skipped because source maps are invalid due to browserify bug: https://github.com/browserify/browserify/issues/1971
]
let valid = true let valid = true
for (const buildName of targetFiles) { for (const buildName of targetFiles) {

Loading…
Cancel
Save