@babel/helper-compilation-targets
Advanced tools
Comparing version 7.25.2 to 7.25.7
@@ -162,3 +162,4 @@ "use strict"; | ||
const { | ||
configPath = "." | ||
configPath = ".", | ||
onBrowserslistConfigFound | ||
} = options; | ||
@@ -172,7 +173,11 @@ validateBrowsers(browsers); | ||
if (!browsers && shouldSearchForConfig) { | ||
browsers = _browserslist.loadConfig({ | ||
config: options.configFile, | ||
path: configPath, | ||
env: options.browserslistEnv | ||
}); | ||
var _options$configFile; | ||
const configFile = (_options$configFile = options.configFile) != null ? _options$configFile : _browserslist.findConfigFile(configPath); | ||
if (configFile != null) { | ||
onBrowserslistConfigFound == null || onBrowserslistConfigFound(configFile); | ||
browsers = _browserslist.loadConfig({ | ||
config: configFile, | ||
env: options.browserslistEnv | ||
}); | ||
} | ||
if (browsers == null) { | ||
@@ -179,0 +184,0 @@ { |
{ | ||
"name": "@babel/helper-compilation-targets", | ||
"version": "7.25.2", | ||
"version": "7.25.7", | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
@@ -28,5 +28,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@babel/compat-data": "^7.25.2", | ||
"@babel/helper-validator-option": "^7.24.8", | ||
"browserslist": "^4.23.1", | ||
"@babel/compat-data": "^7.25.7", | ||
"@babel/helper-validator-option": "^7.25.7", | ||
"browserslist": "^4.24.0", | ||
"lru-cache": "^5.1.1", | ||
@@ -36,3 +36,3 @@ "semver": "^6.3.1" | ||
"devDependencies": { | ||
"@babel/helper-plugin-test-runner": "^7.24.7", | ||
"@babel/helper-plugin-test-runner": "^7.25.7", | ||
"@types/lru-cache": "^5.1.1", | ||
@@ -39,0 +39,0 @@ "@types/semver": "^5.5.0" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91524
19
479
Updated@babel/compat-data@^7.25.7
Updatedbrowserslist@^4.24.0