Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/@babel/helper-compilation-targets/lib/index.js
rd565449 r0c6b92a 160 160 } = inputTargets; 161 161 const { 162 configPath = "." 162 configPath = ".", 163 onBrowserslistConfigFound 163 164 } = options; 164 165 validateBrowsers(browsers); … … 169 170 const shouldSearchForConfig = !options.ignoreBrowserslistConfig && !hasTargets; 170 171 if (!browsers && shouldSearchForConfig) { 171 browsers = _browserslist.loadConfig({ 172 config: options.configFile, 173 path: configPath, 174 env: options.browserslistEnv 175 }); 172 browsers = process.env.BROWSERSLIST; 173 if (!browsers) { 174 const configFile = options.configFile || process.env.BROWSERSLIST_CONFIG || _browserslist.findConfigFile(configPath); 175 if (configFile != null) { 176 onBrowserslistConfigFound == null || onBrowserslistConfigFound(configFile); 177 browsers = _browserslist.loadConfig({ 178 config: configFile, 179 env: options.browserslistEnv 180 }); 181 } 182 } 176 183 if (browsers == null) { 177 184 {
Note:
See TracChangeset
for help on using the changeset viewer.