@umijs/bundler-webpack 4.0.41 → 4.0.42
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.
- package/compiled/autoprefixer/browserslist/index.d.ts +21 -1
- package/compiled/autoprefixer/index.js +2 -2
- package/compiled/autoprefixer/package.json +1 -1
- package/compiled/autoprefixer/postcss/lib/processor.d.ts +1 -1
- package/compiled/webpackbar/LICENSE +20 -0
- package/compiled/webpackbar/dist/index.d.ts +121 -0
- package/compiled/webpackbar/index.js +7 -0
- package/compiled/webpackbar/package.json +1 -0
- package/dist/config/javaScriptRules.js +11 -4
- package/dist/config/progressPlugin.js +9 -7
- package/dist/dev.js +0 -3
- package/dist/loader/swc.d.ts +2 -2
- package/dist/loader/swc.js +42 -4
- package/dist/schema.js +4 -0
- package/dist/swcPlugins/autoCSSModules.d.ts +5 -1
- package/dist/types.d.ts +13 -2
- package/package.json +10 -7
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* ```
|
|
7
7
|
*
|
|
8
8
|
* @param queries Browser queries.
|
|
9
|
+
* @param opts Options.
|
|
9
10
|
* @returns Array with browser names in Can I Use.
|
|
10
11
|
*/
|
|
11
12
|
declare function browserslist(
|
|
@@ -14,6 +15,13 @@ declare function browserslist(
|
|
|
14
15
|
): string[]
|
|
15
16
|
|
|
16
17
|
declare namespace browserslist {
|
|
18
|
+
interface Query {
|
|
19
|
+
compose: 'or' | 'and'
|
|
20
|
+
type: string
|
|
21
|
+
query: string
|
|
22
|
+
not?: true
|
|
23
|
+
}
|
|
24
|
+
|
|
17
25
|
interface Options {
|
|
18
26
|
/**
|
|
19
27
|
* Path to processed file. It will be used to find config files.
|
|
@@ -37,7 +45,7 @@ declare namespace browserslist {
|
|
|
37
45
|
*/
|
|
38
46
|
ignoreUnknownVersions?: boolean
|
|
39
47
|
/**
|
|
40
|
-
* Throw
|
|
48
|
+
* Throw an error if env is not found.
|
|
41
49
|
*/
|
|
42
50
|
throwOnMissing?: boolean
|
|
43
51
|
/**
|
|
@@ -144,6 +152,18 @@ declare namespace browserslist {
|
|
|
144
152
|
*/
|
|
145
153
|
function coverage(browsers: readonly string[], stats?: StatsOptions): number
|
|
146
154
|
|
|
155
|
+
/**
|
|
156
|
+
* Get queries AST to analyze the config content.
|
|
157
|
+
*
|
|
158
|
+
* @param queries Browser queries.
|
|
159
|
+
* @param opts Options.
|
|
160
|
+
* @returns An array of the data of each query in the config.
|
|
161
|
+
*/
|
|
162
|
+
function parse(
|
|
163
|
+
queries?: string | readonly string[] | null,
|
|
164
|
+
opts?: browserslist.Options
|
|
165
|
+
): Query[]
|
|
166
|
+
|
|
147
167
|
function clearCaches(): void
|
|
148
168
|
|
|
149
169
|
function parseConfig(string: string): Config
|