feat: refactoring project
This commit is contained in:
19
node_modules/@babel/helper-compilation-targets/lib/index.js
generated
vendored
19
node_modules/@babel/helper-compilation-targets/lib/index.js
generated
vendored
@@ -159,7 +159,8 @@ function getTargets(inputTargets = {}, options = {}) {
|
||||
esmodules
|
||||
} = inputTargets;
|
||||
const {
|
||||
configPath = "."
|
||||
configPath = ".",
|
||||
onBrowserslistConfigFound
|
||||
} = options;
|
||||
validateBrowsers(browsers);
|
||||
const input = generateTargets(inputTargets);
|
||||
@@ -168,11 +169,17 @@ function getTargets(inputTargets = {}, options = {}) {
|
||||
const hasTargets = shouldParseBrowsers || Object.keys(targets).length > 0;
|
||||
const shouldSearchForConfig = !options.ignoreBrowserslistConfig && !hasTargets;
|
||||
if (!browsers && shouldSearchForConfig) {
|
||||
browsers = _browserslist.loadConfig({
|
||||
config: options.configFile,
|
||||
path: configPath,
|
||||
env: options.browserslistEnv
|
||||
});
|
||||
browsers = process.env.BROWSERSLIST;
|
||||
if (!browsers) {
|
||||
const configFile = options.configFile || process.env.BROWSERSLIST_CONFIG || _browserslist.findConfigFile(configPath);
|
||||
if (configFile != null) {
|
||||
onBrowserslistConfigFound == null || onBrowserslistConfigFound(configFile);
|
||||
browsers = _browserslist.loadConfig({
|
||||
config: configFile,
|
||||
env: options.browserslistEnv
|
||||
});
|
||||
}
|
||||
}
|
||||
if (browsers == null) {
|
||||
{
|
||||
browsers = [];
|
||||
|
||||
2
node_modules/@babel/helper-compilation-targets/lib/index.js.map
generated
vendored
2
node_modules/@babel/helper-compilation-targets/lib/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
10
node_modules/@babel/helper-compilation-targets/package.json
generated
vendored
10
node_modules/@babel/helper-compilation-targets/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/helper-compilation-targets",
|
||||
"version": "7.25.2",
|
||||
"version": "7.25.9",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"license": "MIT",
|
||||
"description": "Helper functions on Babel compilation targets",
|
||||
@@ -25,14 +25,14 @@
|
||||
"babel-plugin"
|
||||
],
|
||||
"dependencies": {
|
||||
"@babel/compat-data": "^7.25.2",
|
||||
"@babel/helper-validator-option": "^7.24.8",
|
||||
"browserslist": "^4.23.1",
|
||||
"@babel/compat-data": "^7.25.9",
|
||||
"@babel/helper-validator-option": "^7.25.9",
|
||||
"browserslist": "^4.24.0",
|
||||
"lru-cache": "^5.1.1",
|
||||
"semver": "^6.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/helper-plugin-test-runner": "^7.24.7",
|
||||
"@babel/helper-plugin-test-runner": "^7.25.9",
|
||||
"@types/lru-cache": "^5.1.1",
|
||||
"@types/semver": "^5.5.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user