@unocss/webpack 66.6.0-beta.1 → 66.6.1
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/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/rspack.d.cts +1 -0
- package/dist/rspack.d.mts +1 -0
- package/package.json +11 -25
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as webpack0 from "webpack";
|
|
2
1
|
import { UserConfig, UserConfigDefaults } from "@unocss/core";
|
|
2
|
+
import { WebpackPluginInstance } from "webpack";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
interface WebpackPluginOptions<Theme extends object = object> extends UserConfig<Theme> {
|
|
@@ -10,6 +10,6 @@ interface WebpackPluginOptions<Theme extends object = object> extends UserConfig
|
|
|
10
10
|
*/
|
|
11
11
|
watch?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare function WebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults):
|
|
13
|
+
declare function WebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults): WebpackPluginInstance;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { WebpackPlugin, WebpackPlugin as default, WebpackPluginOptions };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UserConfig, UserConfigDefaults } from "@unocss/core";
|
|
2
|
-
import
|
|
2
|
+
import { WebpackPluginInstance } from "webpack";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
interface WebpackPluginOptions<Theme extends object = object> extends UserConfig<Theme> {
|
|
@@ -10,6 +10,6 @@ interface WebpackPluginOptions<Theme extends object = object> extends UserConfig
|
|
|
10
10
|
*/
|
|
11
11
|
watch?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare function WebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults):
|
|
13
|
+
declare function WebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults): WebpackPluginInstance;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { WebpackPlugin, WebpackPlugin as default, WebpackPluginOptions };
|
package/dist/rspack.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WebpackPluginOptions } from "./index.cjs";
|
|
2
2
|
import { UserConfigDefaults } from "@unocss/core";
|
|
3
|
+
import { RspackPluginInstance } from "unplugin";
|
|
3
4
|
|
|
4
5
|
//#region src/rspack.d.ts
|
|
5
6
|
declare function UnoCSSRspackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults): RspackPluginInstance;
|
package/dist/rspack.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WebpackPluginOptions } from "./index.mjs";
|
|
2
2
|
import { UserConfigDefaults } from "@unocss/core";
|
|
3
|
+
import { RspackPluginInstance } from "unplugin";
|
|
3
4
|
|
|
4
5
|
//#region src/rspack.d.ts
|
|
5
6
|
declare function UnoCSSRspackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults): RspackPluginInstance;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.6.
|
|
4
|
+
"version": "66.6.1",
|
|
5
5
|
"description": "The Webpack plugin for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -22,25 +22,14 @@
|
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"default": "./dist/index.mjs"
|
|
28
|
-
},
|
|
29
|
-
"require": {
|
|
30
|
-
"types": "./dist/index.d.cts",
|
|
31
|
-
"default": "./dist/index.cjs"
|
|
32
|
-
}
|
|
25
|
+
"require": "./dist/index.cjs",
|
|
26
|
+
"import": "./dist/index.mjs"
|
|
33
27
|
},
|
|
34
28
|
"./rspack": {
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"require": {
|
|
40
|
-
"types": "./dist/rspack.d.cts",
|
|
41
|
-
"default": "./dist/rspack.cjs"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
29
|
+
"require": "./dist/rspack.cjs",
|
|
30
|
+
"import": "./dist/rspack.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./package.json": "./package.json"
|
|
44
33
|
},
|
|
45
34
|
"main": "./dist/index.cjs",
|
|
46
35
|
"module": "./dist/index.mjs",
|
|
@@ -49,7 +38,6 @@
|
|
|
49
38
|
"*": {
|
|
50
39
|
"*": [
|
|
51
40
|
"./dist/*.d.cts",
|
|
52
|
-
"./dist/*",
|
|
53
41
|
"./*"
|
|
54
42
|
]
|
|
55
43
|
}
|
|
@@ -68,14 +56,12 @@
|
|
|
68
56
|
"tinyglobby": "^0.2.15",
|
|
69
57
|
"unplugin": "^2.3.11",
|
|
70
58
|
"unplugin-utils": "^0.3.1",
|
|
71
|
-
"webpack-sources": "^3.3.
|
|
72
|
-
"@unocss/config": "66.6.
|
|
73
|
-
"@unocss/core": "66.6.
|
|
59
|
+
"webpack-sources": "^3.3.4",
|
|
60
|
+
"@unocss/config": "66.6.1",
|
|
61
|
+
"@unocss/core": "66.6.1"
|
|
74
62
|
},
|
|
75
63
|
"devDependencies": {
|
|
76
|
-
"
|
|
77
|
-
"@types/webpack-sources": "^3.2.3",
|
|
78
|
-
"webpack": "^5.104.1"
|
|
64
|
+
"webpack": "^5.105.2"
|
|
79
65
|
},
|
|
80
66
|
"scripts": {
|
|
81
67
|
"build": "tsdown --config-loader unrun",
|