[babel 8] Move ESLint parsing to a Worker (#13199)

This commit is contained in:
Nicolò Ribaudo
2021-05-17 17:04:10 +02:00
committed by GitHub
parent c2181343f1
commit 9d620c2d42
32 changed files with 608 additions and 328 deletions

View File

@@ -42,6 +42,7 @@ export default function* parser(
}
return results[0];
}
// TODO: Add an error code
throw new Error("More than one plugin attempted to override parsing.");
} catch (err) {
if (err.code === "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED") {