@unocss/webpack 66.5.11 → 66.6.0-beta.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 CHANGED
@@ -1,2 +1,15 @@
1
- import { n as WebpackPluginOptions, t as WebpackPlugin } from "./index-CgVajxkl.cjs";
1
+ import * as webpack0 from "webpack";
2
+ import { UserConfig, UserConfigDefaults } from "@unocss/core";
3
+
4
+ //#region src/index.d.ts
5
+ interface WebpackPluginOptions<Theme extends object = object> extends UserConfig<Theme> {
6
+ /**
7
+ * Manually enable watch mode
8
+ *
9
+ * @default false
10
+ */
11
+ watch?: boolean;
12
+ }
13
+ declare function WebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults): webpack0.WebpackPluginInstance;
14
+ //#endregion
2
15
  export { WebpackPlugin, WebpackPlugin as default, WebpackPluginOptions };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,15 @@
1
- import { n as WebpackPluginOptions, t as WebpackPlugin } from "./index-DLa_c6IJ.mjs";
1
+ import { UserConfig, UserConfigDefaults } from "@unocss/core";
2
+ import * as webpack0 from "webpack";
3
+
4
+ //#region src/index.d.ts
5
+ interface WebpackPluginOptions<Theme extends object = object> extends UserConfig<Theme> {
6
+ /**
7
+ * Manually enable watch mode
8
+ *
9
+ * @default false
10
+ */
11
+ watch?: boolean;
12
+ }
13
+ declare function WebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults): webpack0.WebpackPluginInstance;
14
+ //#endregion
2
15
  export { WebpackPlugin, WebpackPlugin as default, WebpackPluginOptions };
package/dist/rspack.d.cts CHANGED
@@ -1,4 +1,5 @@
1
- import { n as WebpackPluginOptions, r as UserConfigDefaults } from "./index-CgVajxkl.cjs";
1
+ import { WebpackPluginOptions } from "./index.cjs";
2
+ import { UserConfigDefaults } from "@unocss/core";
2
3
 
3
4
  //#region src/rspack.d.ts
4
5
  declare function UnoCSSRspackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults): RspackPluginInstance;
package/dist/rspack.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- import { n as WebpackPluginOptions, r as UserConfigDefaults } from "./index-DLa_c6IJ.mjs";
1
+ import { WebpackPluginOptions } from "./index.mjs";
2
+ import { UserConfigDefaults } from "@unocss/core";
2
3
 
3
4
  //#region src/rspack.d.ts
4
5
  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.5.11",
4
+ "version": "66.6.0-beta.1",
5
5
  "description": "The Webpack plugin for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -69,8 +69,8 @@
69
69
  "unplugin": "^2.3.11",
70
70
  "unplugin-utils": "^0.3.1",
71
71
  "webpack-sources": "^3.3.3",
72
- "@unocss/config": "66.5.11",
73
- "@unocss/core": "66.5.11"
72
+ "@unocss/config": "66.6.0-beta.1",
73
+ "@unocss/core": "66.6.0-beta.1"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/webpack": "^5.28.5",