/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/babel-parser/test/attachComment-false.js
14 строк
427 B
Huáng Jùnliàng
Support `sourceType: "commonjs"` (#17390)
29 июн 2025, 23:34
Не верифицирован
29 июн 2025, 23:34
7896ed7
Код
Авторство
О чём код?
import path from "node:path"; import runFixtureTests from "./helpers/run-fixture-tests.js"; import { parseExpression } from "../lib/index.js"; import { fileURLToPath } from "node:url"; runFixtureTests( path.join(path.dirname(fileURLToPath(import.meta.url)), "expressions"), (input, options = {}) => { options.attachComment = false; return parseExpression(input, options); }, /* filter */ undefined, true, );