source: imaps-frontend/node_modules/@babel/core/lib/config/resolve-targets-browser.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 3 months ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.1 KB
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.resolveBrowserslistConfigFile = resolveBrowserslistConfigFile;
7exports.resolveTargets = resolveTargets;
8function _helperCompilationTargets() {
9 const data = require("@babel/helper-compilation-targets");
10 _helperCompilationTargets = function () {
11 return data;
12 };
13 return data;
14}
15function resolveBrowserslistConfigFile(browserslistConfigFile, configFilePath) {
16 return undefined;
17}
18function resolveTargets(options, root) {
19 const optTargets = options.targets;
20 let targets;
21 if (typeof optTargets === "string" || Array.isArray(optTargets)) {
22 targets = {
23 browsers: optTargets
24 };
25 } else if (optTargets) {
26 if ("esmodules" in optTargets) {
27 targets = Object.assign({}, optTargets, {
28 esmodules: "intersect"
29 });
30 } else {
31 targets = optTargets;
32 }
33 }
34 return (0, _helperCompilationTargets().default)(targets, {
35 ignoreBrowserslistConfig: true,
36 browserslistEnv: options.browserslistEnv
37 });
38}
390 && 0;
40
41//# sourceMappingURL=resolve-targets-browser.js.map
Note: See TracBrowser for help on using the repository browser.