@umijs/bundler-webpack 4.6.51 → 4.6.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,7 +124,9 @@ declare namespace browserslist {
124
124
 
125
125
  let cache: {
126
126
  [feature: string]: {
127
- [name: string]: 'y' | 'n'
127
+ [name: string]: {
128
+ [version: string]: string
129
+ }
128
130
  }
129
131
  }
130
132
 
@@ -164,6 +166,17 @@ declare namespace browserslist {
164
166
  opts?: browserslist.Options
165
167
  ): Query[]
166
168
 
169
+ /**
170
+ * Return queries for specific file inside the project.
171
+ *
172
+ * ```js
173
+ * browserslist.loadConfig({
174
+ * file: process.cwd()
175
+ * }) ?? browserslist.defaults
176
+ * ```
177
+ */
178
+ function loadConfig(options: LoadConfigOptions): string[] | undefined
179
+
167
180
  function clearCaches(): void
168
181
 
169
182
  function parseConfig(string: string): Config
@@ -172,13 +185,25 @@ declare namespace browserslist {
172
185
 
173
186
  function findConfig(...pathSegments: string[]): Config | undefined
174
187
 
188
+ function findConfigFile(...pathSegments: string[]): string | undefined
189
+
175
190
  interface LoadConfigOptions {
191
+ /**
192
+ * Path to config file
193
+ * */
176
194
  config?: string
195
+
196
+ /**
197
+ * Path to file inside the project to find Browserslist config
198
+ * in closest folder
199
+ */
177
200
  path?: string
201
+
202
+ /**
203
+ * Environment to choose part of config.
204
+ */
178
205
  env?: string
179
206
  }
180
-
181
- function loadConfig(options: LoadConfigOptions): string[] | undefined
182
207
  }
183
208
 
184
209
  declare global {
@@ -191,6 +216,7 @@ declare global {
191
216
  BROWSERSLIST_ENV?: string
192
217
  BROWSERSLIST_IGNORE_OLD_DATA?: string
193
218
  BROWSERSLIST_STATS?: string
219
+ BROWSERSLIST_ROOT_PATH?: string
194
220
  }
195
221
  }
196
222
  }