source: trip-planner-front/node_modules/@babel/core/lib/config/resolve-targets-browser.js

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
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.resolveBrowserslistConfigFile = resolveBrowserslistConfigFile;
7exports.resolveTargets = resolveTargets;
8
9function _helperCompilationTargets() {
10 const data = require("@babel/helper-compilation-targets");
11
12 _helperCompilationTargets = function () {
13 return data;
14 };
15
16 return data;
17}
18
19function resolveBrowserslistConfigFile(browserslistConfigFile, configFilePath) {
20 return undefined;
21}
22
23function 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.