Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
945 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.resolveBrowserslistConfigFile = resolveBrowserslistConfigFile;
|
---|
7 | exports.resolveTargets = resolveTargets;
|
---|
8 |
|
---|
9 | function _helperCompilationTargets() {
|
---|
10 | const data = require("@babel/helper-compilation-targets");
|
---|
11 |
|
---|
12 | _helperCompilationTargets = function () {
|
---|
13 | return data;
|
---|
14 | };
|
---|
15 |
|
---|
16 | return data;
|
---|
17 | }
|
---|
18 |
|
---|
19 | function resolveBrowserslistConfigFile(browserslistConfigFile, configFilePath) {
|
---|
20 | return undefined;
|
---|
21 | }
|
---|
22 |
|
---|
23 | function resolveTargets(options, root) {
|
---|
24 | let targets = options.targets;
|
---|
25 |
|
---|
26 | if (typeof targets === "string" || Array.isArray(targets)) {
|
---|
27 | targets = {
|
---|
28 | browsers: targets
|
---|
29 | };
|
---|
30 | }
|
---|
31 |
|
---|
32 | if (targets && targets.esmodules) {
|
---|
33 | targets = Object.assign({}, targets, {
|
---|
34 | esmodules: "intersect"
|
---|
35 | });
|
---|
36 | }
|
---|
37 |
|
---|
38 | return (0, _helperCompilationTargets().default)(targets, {
|
---|
39 | ignoreBrowserslistConfig: true,
|
---|
40 | browserslistEnv: options.browserslistEnv
|
---|
41 | });
|
---|
42 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.