src/language-js/parse/espree.js/parse
function parse(originalText, parsers, options = {}) {
  const { parse } = require("espree");

  const textToParse = replaceHashbang(originalText);
  const { result: ast, error: moduleParseError } = tryCombinations(
    () => parse(textToParse, { ...parseOptions, sourceType: "module" }),
    () => parse(textToParse, { ...parseOptions, sourceType: "script" })
  );

  if (!ast) {
    // throw the error for `module` parsing
    throw createParseError(moduleParseError);
  }

  options.originalText = originalText;
  return postprocess(ast, options);
}