You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
735 B
19 lines
735 B
"use strict"; |
|
|
|
exports.__esModule = true; |
|
exports.stringifyTargetsMultiline = stringifyTargetsMultiline; |
|
exports.stringifyTargets = stringifyTargets; |
|
exports.presetEnvSilentDebugHeader = void 0; |
|
|
|
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(/"\}$/, '" }'); |
|
} |