Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
735 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports.stringifyTargetsMultiline = stringifyTargetsMultiline;
|
---|
5 | exports.stringifyTargets = stringifyTargets;
|
---|
6 | exports.presetEnvSilentDebugHeader = void 0;
|
---|
7 |
|
---|
8 | var _helperCompilationTargets = require("@babel/helper-compilation-targets");
|
---|
9 |
|
---|
10 | const presetEnvSilentDebugHeader = "#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets";
|
---|
11 | exports.presetEnvSilentDebugHeader = presetEnvSilentDebugHeader;
|
---|
12 |
|
---|
13 | function stringifyTargetsMultiline(targets) {
|
---|
14 | return JSON.stringify((0, _helperCompilationTargets.prettifyTargets)(targets), null, 2);
|
---|
15 | }
|
---|
16 |
|
---|
17 | function stringifyTargets(targets) {
|
---|
18 | return JSON.stringify(targets).replace(/,/g, ", ").replace(/^\{"/, '{ "').replace(/"\}$/, '" }');
|
---|
19 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.