Server IP : 150.95.80.236 / Your IP : 3.139.237.82 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/api-uat.pcu.in.th/node_modules/@babel/core/src/config/ |
Upload File : |
type browserType = typeof import("./resolve-targets-browser"); type nodeType = typeof import("./resolve-targets"); // Kind of gross, but essentially asserting that the exports of this module are the same as the // exports of index-browser, since this file may be replaced at bundle time with index-browser. ({}) as any as browserType as nodeType; import type { ValidatedOptions } from "./validation/options.ts"; import path from "path"; import getTargets, { type InputTargets, } from "@babel/helper-compilation-targets"; import type { Targets } from "@babel/helper-compilation-targets"; export function resolveBrowserslistConfigFile( browserslistConfigFile: string, configFileDir: string, ): string | undefined { return path.resolve(configFileDir, browserslistConfigFile); } export function resolveTargets( options: ValidatedOptions, root: string, ): Targets { const optTargets = options.targets; let targets: InputTargets; if (typeof optTargets === "string" || Array.isArray(optTargets)) { targets = { browsers: optTargets }; } else if (optTargets) { if ("esmodules" in optTargets) { targets = { ...optTargets, esmodules: "intersect" }; } else { // https://github.com/microsoft/TypeScript/issues/17002 targets = optTargets as InputTargets; } } const { browserslistConfigFile } = options; let configFile; let ignoreBrowserslistConfig = false; if (typeof browserslistConfigFile === "string") { configFile = browserslistConfigFile; } else { ignoreBrowserslistConfig = browserslistConfigFile === false; } return getTargets(targets, { ignoreBrowserslistConfig, configFile, configPath: root, browserslistEnv: options.browserslistEnv, }); }