@unocss/vite 0.3.0 → 0.4.3

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.ts CHANGED
@@ -1,7 +1,9 @@
1
+ import * as vite from 'vite';
1
2
  import { Plugin } from 'vite';
2
3
  import { UnoGenerator, BetterMap, UserConfigDefaults } from 'unocss';
3
4
  import { FilterPattern } from '@rollup/pluginutils';
4
5
  import { UserConfig } from '@unocss/core';
6
+ import { Context as Context$1 } from 'vm';
5
7
 
6
8
  interface UnocssUserOptions extends UserConfig {
7
9
  include?: FilterPattern;
@@ -33,7 +35,11 @@ declare type Context = ReturnType<typeof createContext>;
33
35
 
34
36
  declare function ChunkModeBuildPlugin({ uno, config }: Context): Plugin;
35
37
 
36
- declare function GlobalModeDevPlugin({ config, uno, tokens, onInvalidate, scan }: Context): Plugin;
38
+ declare function GlobalModeDevPlugin({ config, uno, tokens, onInvalidate, scan }: Context): Plugin[];
39
+
40
+ declare function GlobalModeBuildPlugin({ uno, config, scan, tokens }: Context$1): Plugin[];
41
+
42
+ declare function GlobalModePlugin(ctx: Context): vite.Plugin[];
37
43
 
38
44
  declare function PerModuleModePlugin({ uno, config }: Context): Plugin;
39
45
 
@@ -41,4 +47,4 @@ declare function VueScopedPlugin({ uno, config }: Context): Plugin;
41
47
 
42
48
  declare function UnocssPlugin(configOrPath?: UnocssUserOptions | string, defaults?: UserConfigDefaults): Plugin[];
43
49
 
44
- export { ChunkModeBuildPlugin, GlobalModeDevPlugin, PerModuleModePlugin, UnocssUserOptions, VueScopedPlugin, UnocssPlugin as default };
50
+ export { ChunkModeBuildPlugin, GlobalModeBuildPlugin, GlobalModeDevPlugin, GlobalModePlugin, PerModuleModePlugin, UnocssUserOptions, VueScopedPlugin, UnocssPlugin as default };