diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:31:11 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:31:11 +0800 |
| commit | aa773172311dcada759dfbaac485f4bc6e00bc21 (patch) | |
| tree | ca6d9a5eff3ab8f689f9acb4f0df791d9486813d /node_modules/@babel/helper-define-polyfill-provider/lib/debug-utils.js | |
| parent | c5a5384e846f242e901e859fe600d695d8990a9a (diff) | |
added babel
Diffstat (limited to 'node_modules/@babel/helper-define-polyfill-provider/lib/debug-utils.js')
| -rw-r--r-- | node_modules/@babel/helper-define-polyfill-provider/lib/debug-utils.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/@babel/helper-define-polyfill-provider/lib/debug-utils.js b/node_modules/@babel/helper-define-polyfill-provider/lib/debug-utils.js new file mode 100644 index 00000000..0f30c856 --- /dev/null +++ b/node_modules/@babel/helper-define-polyfill-provider/lib/debug-utils.js @@ -0,0 +1,15 @@ +"use strict"; + +exports.__esModule = true; +exports.presetEnvSilentDebugHeader = void 0; +exports.stringifyTargets = stringifyTargets; +exports.stringifyTargetsMultiline = stringifyTargetsMultiline; +var _helperCompilationTargets = require("@babel/helper-compilation-targets"); +const presetEnvSilentDebugHeader = "#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets"; +exports.presetEnvSilentDebugHeader = presetEnvSilentDebugHeader; +function stringifyTargetsMultiline(targets) { + return JSON.stringify((0, _helperCompilationTargets.prettifyTargets)(targets), null, 2); +} +function stringifyTargets(targets) { + return JSON.stringify(targets).replace(/,/g, ", ").replace(/^\{"/, '{ "').replace(/"\}$/, '" }'); +}
\ No newline at end of file |
