amis-rpc-design/node_modules/@babel/cli/lib/babel/options.js.map

1 line
19 KiB
Plaintext
Raw Normal View History

2023-10-07 19:42:30 +08:00
{"version":3,"names":["_fs","data","require","_commander","_core","_glob","commander","option","collect","booleanify","undefined","DEFAULT_EXTENSIONS","join","version","usage","action","parseArgv","args","parse","errors","filenames","reduce","globbed","input","files","glob","sync","length","push","Array","from","Set","forEach","filename","fs","existsSync","outDir","outFile","relative","watch","skipInitialBuild","deleteDirOnStart","verbose","quiet","babelrc","keepFileExtension","outFileExtension","console","error","e","opts","babelOptions","presets","plugins","rootMode","configFile","envName","sourceType","ignore","only","retainLines","compact","minified","auxiliaryCommentBefore","auxiliaryCommentAfter","sourceMaps","sourceFileName","sourceRoot","highlightCode","comments","Object","assign","moduleRoot","moduleIds","moduleId","key","keys","cliOptions","extensions","copyFiles","copyIgnored","includeDotfiles","sourceMapTarget","val","value","previousValue","values","split"],"sources":["../../src/babel/options.ts"],"sourcesContent":["import fs from \"fs\";\n\nimport commander from \"commander\";\nimport { version, DEFAULT_EXTENSIONS } from \"@babel/core\";\nimport glob from \"glob\";\n\nimport type { InputOptions } from \"@babel/core\";\n\n// Standard Babel input configs.\ncommander.option(\n \"-f, --filename [filename]\",\n \"The filename to use when reading from stdin. This will be used in source-maps, errors etc.\",\n);\ncommander.option(\n \"--presets [list]\",\n \"A comma-separated list of preset names.\",\n collect,\n);\ncommander.option(\n \"--plugins [list]\",\n \"A comma-separated list of plugin names.\",\n collect,\n);\ncommander.option(\"--config-file [path]\", \"Path to a .babelrc file to use.\");\ncommander.option(\n \"--env-name [name]\",\n \"The name of the 'env' to use when loading configs and plugins. \" +\n \"Defaults to the value of BABEL_ENV, or else NODE_ENV, or else 'development'.\",\n);\ncommander.option(\n \"--root-mode [mode]\",\n \"The project-root resolution mode. \" +\n \"One of 'root' (the default), 'upward', or 'upward-optional'.\",\n);\n\n// Basic file input configuration.\ncommander.option(\"--source-type [script|module]\", \"\");\ncommander.option(\n \"--no-babelrc\",\n \"Whether or not to look up .babelrc and .babelignore files.\",\n);\ncommander.option(\n \"--ignore [list]\",\n \"List of glob paths to **not** compile.\",\n collect,\n);\ncommander.option(\n \"--only [list]\",\n \"List of glob paths to **only** compile.\",\n collect,\n);\n\n// Misc babel config.\ncommander.option(\n \"--no-highlight-code\",\n \"Enable or disable ANSI syntax highlighting of code frames. (on by default)\",\n);\n\n// General output formatting.\ncommander.option(\n \"--no-comments\",\n \"Write comments to generated output. (true by default)\",\n);\ncommander.option(\n \"--retain-lines\",\n \"Retain line numbers. This will result in really ugly code.\",\n);\ncommander.option(\n \"--compact [true|false|auto]\",\n \"Do not include superfluous whitespace characters and line terminators.\",\n booleanify,\n);\ncommander.option(\n \"--minified\",\n \"Save as many bytes when printing. (false by default)\",\n);\ncommander.option(\n \"--auxiliary-comment-before [string]\",\n \"Print a comment before any injected non-user code.\",\n);\ncommander.option(\n \"--auxiliary-comment-after [string]\",\n \"Print a comment after any injected non-user code.\",\n);\n\n// General source map formatting.\ncommander.option(\n \"-s, --source-maps [true|false|inline|both]\",\n \"\",\n booleanify,\n undefined,\n);\ncommander.option(\n \"--source-map-target [string]\",\n \"Set `file` on returned source map.\",\n);\ncommander.option(\n \"--source-file-name [string]\",\n \"Set `sources[0]` on returned source map.\",\n);\ncommander.option(\n \"--source-root [filename]\",\n \"The root from which all sources are relative.\",\n);\n\nif (!process.env.BABEL_8_BREAKING) {\n // Config params for certain module output formats.\n commander.option(\n \"--module-root [filename]\",\n \"Optional pref