unocss 0.55.0 → 0.55.2

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/astro.cjs CHANGED
@@ -3,10 +3,10 @@
3
3
  const AstroIntegrationPlugin = require('@unocss/astro');
4
4
  const presetUno = require('@unocss/preset-uno');
5
5
 
6
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
6
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
7
7
 
8
- const AstroIntegrationPlugin__default = /*#__PURE__*/_interopDefaultLegacy(AstroIntegrationPlugin);
9
- const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
8
+ const AstroIntegrationPlugin__default = /*#__PURE__*/_interopDefaultCompat(AstroIntegrationPlugin);
9
+ const presetUno__default = /*#__PURE__*/_interopDefaultCompat(presetUno);
10
10
 
11
11
  function UnocssAstroIntegration(config) {
12
12
  return AstroIntegrationPlugin__default(
@@ -0,0 +1,6 @@
1
+ import { AstroIntegrationConfig } from '@unocss/astro';
2
+ import { AstroIntegration } from 'astro';
3
+
4
+ declare function UnocssAstroIntegration<Theme extends object>(config?: AstroIntegrationConfig<Theme>): AstroIntegration;
5
+
6
+ export { UnocssAstroIntegration as default };
@@ -0,0 +1,6 @@
1
+ import { AstroIntegrationConfig } from '@unocss/astro';
2
+ import { AstroIntegration } from 'astro';
3
+
4
+ declare function UnocssAstroIntegration<Theme extends object>(config?: AstroIntegrationConfig<Theme>): AstroIntegration;
5
+
6
+ export { UnocssAstroIntegration as default };
package/dist/index.cjs CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const core = require('@unocss/core');
6
4
  const presetUno = require('@unocss/preset-uno');
7
5
  const presetAttributify = require('@unocss/preset-attributify');
@@ -16,20 +14,20 @@ const transformerVariantGroup = require('@unocss/transformer-variant-group');
16
14
  const transformerCompileClass = require('@unocss/transformer-compile-class');
17
15
  const transformerAttributifyJsx = require('@unocss/transformer-attributify-jsx');
18
16
 
19
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
17
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
20
18
 
21
- const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
22
- const presetAttributify__default = /*#__PURE__*/_interopDefaultLegacy(presetAttributify);
23
- const presetTagify__default = /*#__PURE__*/_interopDefaultLegacy(presetTagify);
24
- const presetIcons__default = /*#__PURE__*/_interopDefaultLegacy(presetIcons);
25
- const presetWebFonts__default = /*#__PURE__*/_interopDefaultLegacy(presetWebFonts);
26
- const presetTypography__default = /*#__PURE__*/_interopDefaultLegacy(presetTypography);
27
- const presetMini__default = /*#__PURE__*/_interopDefaultLegacy(presetMini);
28
- const presetWind__default = /*#__PURE__*/_interopDefaultLegacy(presetWind);
29
- const transformerDirectives__default = /*#__PURE__*/_interopDefaultLegacy(transformerDirectives);
30
- const transformerVariantGroup__default = /*#__PURE__*/_interopDefaultLegacy(transformerVariantGroup);
31
- const transformerCompileClass__default = /*#__PURE__*/_interopDefaultLegacy(transformerCompileClass);
32
- const transformerAttributifyJsx__default = /*#__PURE__*/_interopDefaultLegacy(transformerAttributifyJsx);
19
+ const presetUno__default = /*#__PURE__*/_interopDefaultCompat(presetUno);
20
+ const presetAttributify__default = /*#__PURE__*/_interopDefaultCompat(presetAttributify);
21
+ const presetTagify__default = /*#__PURE__*/_interopDefaultCompat(presetTagify);
22
+ const presetIcons__default = /*#__PURE__*/_interopDefaultCompat(presetIcons);
23
+ const presetWebFonts__default = /*#__PURE__*/_interopDefaultCompat(presetWebFonts);
24
+ const presetTypography__default = /*#__PURE__*/_interopDefaultCompat(presetTypography);
25
+ const presetMini__default = /*#__PURE__*/_interopDefaultCompat(presetMini);
26
+ const presetWind__default = /*#__PURE__*/_interopDefaultCompat(presetWind);
27
+ const transformerDirectives__default = /*#__PURE__*/_interopDefaultCompat(transformerDirectives);
28
+ const transformerVariantGroup__default = /*#__PURE__*/_interopDefaultCompat(transformerVariantGroup);
29
+ const transformerCompileClass__default = /*#__PURE__*/_interopDefaultCompat(transformerCompileClass);
30
+ const transformerAttributifyJsx__default = /*#__PURE__*/_interopDefaultCompat(transformerAttributifyJsx);
33
31
 
34
32
  function defineConfig(config) {
35
33
  return config;
@@ -52,6 +50,6 @@ exports.transformerCompileClass = transformerCompileClass__default;
52
50
  exports.transformerAttributifyJsx = transformerAttributifyJsx__default;
53
51
  exports.defineConfig = defineConfig;
54
52
  exports.definePreset = definePreset;
55
- for (const k in core) {
56
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = core[k];
57
- }
53
+ Object.keys(core).forEach(function (k) {
54
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = core[k];
55
+ });
@@ -0,0 +1,20 @@
1
+ import { UserConfig, Preset } from '@unocss/core';
2
+ export * from '@unocss/core';
3
+ import { Theme } from '@unocss/preset-uno';
4
+ export { default as presetUno } from '@unocss/preset-uno';
5
+ export { default as presetAttributify } from '@unocss/preset-attributify';
6
+ export { default as presetTagify } from '@unocss/preset-tagify';
7
+ export { default as presetIcons } from '@unocss/preset-icons';
8
+ export { default as presetWebFonts } from '@unocss/preset-web-fonts';
9
+ export { default as presetTypography } from '@unocss/preset-typography';
10
+ export { default as presetMini } from '@unocss/preset-mini';
11
+ export { default as presetWind } from '@unocss/preset-wind';
12
+ export { default as transformerDirectives } from '@unocss/transformer-directives';
13
+ export { default as transformerVariantGroup } from '@unocss/transformer-variant-group';
14
+ export { default as transformerCompileClass } from '@unocss/transformer-compile-class';
15
+ export { default as transformerAttributifyJsx } from '@unocss/transformer-attributify-jsx';
16
+
17
+ declare function defineConfig<T extends object = Theme>(config: UserConfig<T>): UserConfig<T>;
18
+ declare function definePreset<T extends object = object>(preset: Preset<T>): Preset<T>;
19
+
20
+ export { defineConfig, definePreset };
@@ -0,0 +1,20 @@
1
+ import { UserConfig, Preset } from '@unocss/core';
2
+ export * from '@unocss/core';
3
+ import { Theme } from '@unocss/preset-uno';
4
+ export { default as presetUno } from '@unocss/preset-uno';
5
+ export { default as presetAttributify } from '@unocss/preset-attributify';
6
+ export { default as presetTagify } from '@unocss/preset-tagify';
7
+ export { default as presetIcons } from '@unocss/preset-icons';
8
+ export { default as presetWebFonts } from '@unocss/preset-web-fonts';
9
+ export { default as presetTypography } from '@unocss/preset-typography';
10
+ export { default as presetMini } from '@unocss/preset-mini';
11
+ export { default as presetWind } from '@unocss/preset-wind';
12
+ export { default as transformerDirectives } from '@unocss/transformer-directives';
13
+ export { default as transformerVariantGroup } from '@unocss/transformer-variant-group';
14
+ export { default as transformerCompileClass } from '@unocss/transformer-compile-class';
15
+ export { default as transformerAttributifyJsx } from '@unocss/transformer-attributify-jsx';
16
+
17
+ declare function defineConfig<T extends object = Theme>(config: UserConfig<T>): UserConfig<T>;
18
+ declare function definePreset<T extends object = object>(preset: Preset<T>): Preset<T>;
19
+
20
+ export { defineConfig, definePreset };
package/dist/postcss.cjs CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  const postcss = require('@unocss/postcss');
4
4
 
5
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
5
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
6
6
 
7
- const postcss__default = /*#__PURE__*/_interopDefaultLegacy(postcss);
7
+ const postcss__default = /*#__PURE__*/_interopDefaultCompat(postcss);
8
8
 
9
9
 
10
10
 
@@ -0,0 +1,2 @@
1
+ import postcss from '@unocss/postcss';
2
+ export { default } from '@unocss/postcss';
@@ -0,0 +1,2 @@
1
+ import postcss from '@unocss/postcss';
2
+ export { default } from '@unocss/postcss';
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const presetAttributify = require('@unocss/preset-attributify');
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
8
8
 
9
- const presetAttributify__default = /*#__PURE__*/_interopDefaultLegacy(presetAttributify);
9
+ const presetAttributify__default = /*#__PURE__*/_interopDefaultCompat(presetAttributify);
10
10
 
11
11
 
12
12
 
13
- exports["default"] = presetAttributify__default;
14
- for (const k in presetAttributify) {
15
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetAttributify[k];
16
- }
13
+ exports.default = presetAttributify__default;
14
+ Object.keys(presetAttributify).forEach(function (k) {
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = presetAttributify[k];
16
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-attributify';
2
+ export { default } from '@unocss/preset-attributify';
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-attributify';
2
+ export { default } from '@unocss/preset-attributify';
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const presetIcons = require('@unocss/preset-icons');
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
8
8
 
9
- const presetIcons__default = /*#__PURE__*/_interopDefaultLegacy(presetIcons);
9
+ const presetIcons__default = /*#__PURE__*/_interopDefaultCompat(presetIcons);
10
10
 
11
11
 
12
12
 
13
- exports["default"] = presetIcons__default;
14
- for (const k in presetIcons) {
15
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetIcons[k];
16
- }
13
+ exports.default = presetIcons__default;
14
+ Object.keys(presetIcons).forEach(function (k) {
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = presetIcons[k];
16
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-icons';
2
+ export { default } from '@unocss/preset-icons';
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-icons';
2
+ export { default } from '@unocss/preset-icons';
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const presetMini = require('@unocss/preset-mini');
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
8
8
 
9
- const presetMini__default = /*#__PURE__*/_interopDefaultLegacy(presetMini);
9
+ const presetMini__default = /*#__PURE__*/_interopDefaultCompat(presetMini);
10
10
 
11
11
 
12
12
 
13
- exports["default"] = presetMini__default;
14
- for (const k in presetMini) {
15
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetMini[k];
16
- }
13
+ exports.default = presetMini__default;
14
+ Object.keys(presetMini).forEach(function (k) {
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = presetMini[k];
16
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-mini';
2
+ export { default } from '@unocss/preset-mini';
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-mini';
2
+ export { default } from '@unocss/preset-mini';
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const presetTagify = require('@unocss/preset-tagify');
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
8
8
 
9
- const presetTagify__default = /*#__PURE__*/_interopDefaultLegacy(presetTagify);
9
+ const presetTagify__default = /*#__PURE__*/_interopDefaultCompat(presetTagify);
10
10
 
11
11
 
12
12
 
13
- exports["default"] = presetTagify__default;
14
- for (const k in presetTagify) {
15
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetTagify[k];
16
- }
13
+ exports.default = presetTagify__default;
14
+ Object.keys(presetTagify).forEach(function (k) {
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = presetTagify[k];
16
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-tagify';
2
+ export { default } from '@unocss/preset-tagify';
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-tagify';
2
+ export { default } from '@unocss/preset-tagify';
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const presetTypography = require('@unocss/preset-typography');
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
8
8
 
9
- const presetTypography__default = /*#__PURE__*/_interopDefaultLegacy(presetTypography);
9
+ const presetTypography__default = /*#__PURE__*/_interopDefaultCompat(presetTypography);
10
10
 
11
11
 
12
12
 
13
- exports["default"] = presetTypography__default;
14
- for (const k in presetTypography) {
15
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetTypography[k];
16
- }
13
+ exports.default = presetTypography__default;
14
+ Object.keys(presetTypography).forEach(function (k) {
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = presetTypography[k];
16
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-typography';
2
+ export { default } from '@unocss/preset-typography';
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-typography';
2
+ export { default } from '@unocss/preset-typography';
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const presetUno = require('@unocss/preset-uno');
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
8
8
 
9
- const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
9
+ const presetUno__default = /*#__PURE__*/_interopDefaultCompat(presetUno);
10
10
 
11
11
 
12
12
 
13
- exports["default"] = presetUno__default;
14
- for (const k in presetUno) {
15
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetUno[k];
16
- }
13
+ exports.default = presetUno__default;
14
+ Object.keys(presetUno).forEach(function (k) {
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = presetUno[k];
16
+ });
@@ -0,0 +1,9 @@
1
+ export * from '@unocss/preset-uno';
2
+ export { default } from '@unocss/preset-uno';
3
+ import '@unocss/preset-icons';
4
+ import '@unocss/preset-attributify';
5
+ import '@unocss/preset-tagify';
6
+ import '@unocss/preset-web-fonts';
7
+ import '@unocss/preset-typography';
8
+ import '@unocss/preset-wind';
9
+ import '@unocss/preset-mini';
@@ -0,0 +1,9 @@
1
+ export * from '@unocss/preset-uno';
2
+ export { default } from '@unocss/preset-uno';
3
+ import '@unocss/preset-icons';
4
+ import '@unocss/preset-attributify';
5
+ import '@unocss/preset-tagify';
6
+ import '@unocss/preset-web-fonts';
7
+ import '@unocss/preset-typography';
8
+ import '@unocss/preset-wind';
9
+ import '@unocss/preset-mini';
@@ -1,2 +1,9 @@
1
1
  export * from '@unocss/preset-uno';
2
2
  export { default } from '@unocss/preset-uno';
3
+ import '@unocss/preset-icons';
4
+ import '@unocss/preset-attributify';
5
+ import '@unocss/preset-tagify';
6
+ import '@unocss/preset-web-fonts';
7
+ import '@unocss/preset-typography';
8
+ import '@unocss/preset-wind';
9
+ import '@unocss/preset-mini';
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const presetWebFonts = require('@unocss/preset-web-fonts');
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
8
8
 
9
- const presetWebFonts__default = /*#__PURE__*/_interopDefaultLegacy(presetWebFonts);
9
+ const presetWebFonts__default = /*#__PURE__*/_interopDefaultCompat(presetWebFonts);
10
10
 
11
11
 
12
12
 
13
- exports["default"] = presetWebFonts__default;
14
- for (const k in presetWebFonts) {
15
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetWebFonts[k];
16
- }
13
+ exports.default = presetWebFonts__default;
14
+ Object.keys(presetWebFonts).forEach(function (k) {
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = presetWebFonts[k];
16
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-web-fonts';
2
+ export { default } from '@unocss/preset-web-fonts';
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-web-fonts';
2
+ export { default } from '@unocss/preset-web-fonts';
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const presetWind = require('@unocss/preset-wind');
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
8
8
 
9
- const presetWind__default = /*#__PURE__*/_interopDefaultLegacy(presetWind);
9
+ const presetWind__default = /*#__PURE__*/_interopDefaultCompat(presetWind);
10
10
 
11
11
 
12
12
 
13
- exports["default"] = presetWind__default;
14
- for (const k in presetWind) {
15
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetWind[k];
16
- }
13
+ exports.default = presetWind__default;
14
+ Object.keys(presetWind).forEach(function (k) {
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = presetWind[k];
16
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-wind';
2
+ export { default } from '@unocss/preset-wind';
@@ -0,0 +1,2 @@
1
+ export * from '@unocss/preset-wind';
2
+ export { default } from '@unocss/preset-wind';
package/dist/vite.cjs CHANGED
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const VitePlugin = require('@unocss/vite');
6
6
  const presetUno = require('@unocss/preset-uno');
7
7
 
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
9
9
 
10
- const VitePlugin__default = /*#__PURE__*/_interopDefaultLegacy(VitePlugin);
11
- const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
10
+ const VitePlugin__default = /*#__PURE__*/_interopDefaultCompat(VitePlugin);
11
+ const presetUno__default = /*#__PURE__*/_interopDefaultCompat(presetUno);
12
12
 
13
13
  function UnocssVitePlugin(configOrPath) {
14
14
  return VitePlugin__default(
@@ -21,7 +21,7 @@ function UnocssVitePlugin(configOrPath) {
21
21
  );
22
22
  }
23
23
 
24
- exports["default"] = UnocssVitePlugin;
25
- for (const k in VitePlugin) {
26
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = VitePlugin[k];
27
- }
24
+ exports.default = UnocssVitePlugin;
25
+ Object.keys(VitePlugin).forEach(function (k) {
26
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = VitePlugin[k];
27
+ });
@@ -0,0 +1,7 @@
1
+ import { VitePluginConfig } from '@unocss/vite';
2
+ export * from '@unocss/vite';
3
+ import { Plugin } from 'vite';
4
+
5
+ declare function UnocssVitePlugin<Theme extends object>(configOrPath?: VitePluginConfig<Theme> | string): Plugin[];
6
+
7
+ export { UnocssVitePlugin as default };
@@ -0,0 +1,7 @@
1
+ import { VitePluginConfig } from '@unocss/vite';
2
+ export * from '@unocss/vite';
3
+ import { Plugin } from 'vite';
4
+
5
+ declare function UnocssVitePlugin<Theme extends object>(configOrPath?: VitePluginConfig<Theme> | string): Plugin[];
6
+
7
+ export { UnocssVitePlugin as default };
package/dist/webpack.cjs CHANGED
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const WebpackPlugin = require('@unocss/webpack');
6
6
  const presetUno = require('@unocss/preset-uno');
7
7
 
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
9
9
 
10
- const WebpackPlugin__default = /*#__PURE__*/_interopDefaultLegacy(WebpackPlugin);
11
- const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
10
+ const WebpackPlugin__default = /*#__PURE__*/_interopDefaultCompat(WebpackPlugin);
11
+ const presetUno__default = /*#__PURE__*/_interopDefaultCompat(presetUno);
12
12
 
13
13
  function UnocssWebpackPlugin(configOrPath) {
14
14
  return WebpackPlugin__default(
@@ -21,7 +21,7 @@ function UnocssWebpackPlugin(configOrPath) {
21
21
  );
22
22
  }
23
23
 
24
- exports["default"] = UnocssWebpackPlugin;
25
- for (const k in WebpackPlugin) {
26
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = WebpackPlugin[k];
27
- }
24
+ exports.default = UnocssWebpackPlugin;
25
+ Object.keys(WebpackPlugin).forEach(function (k) {
26
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = WebpackPlugin[k];
27
+ });
@@ -0,0 +1,6 @@
1
+ import { WebpackPluginOptions } from '@unocss/webpack';
2
+ export * from '@unocss/webpack';
3
+
4
+ declare function UnocssWebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string): any;
5
+
6
+ export { UnocssWebpackPlugin as default };
@@ -0,0 +1,6 @@
1
+ import { WebpackPluginOptions } from '@unocss/webpack';
2
+ export * from '@unocss/webpack';
3
+
4
+ declare function UnocssWebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string): any;
5
+
6
+ export { UnocssWebpackPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unocss",
3
- "version": "0.55.0",
3
+ "version": "0.55.2",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -104,7 +104,7 @@
104
104
  },
105
105
  "peerDependencies": {
106
106
  "vite": "^2.9.0 || ^3.0.0-0 || ^4.0.0",
107
- "@unocss/webpack": "0.55.0"
107
+ "@unocss/webpack": "0.55.2"
108
108
  },
109
109
  "peerDependenciesMeta": {
110
110
  "@unocss/webpack": {
@@ -115,29 +115,29 @@
115
115
  }
116
116
  },
117
117
  "dependencies": {
118
- "@unocss/astro": "0.55.0",
119
- "@unocss/cli": "0.55.0",
120
- "@unocss/core": "0.55.0",
121
- "@unocss/extractor-arbitrary-variants": "0.55.0",
122
- "@unocss/postcss": "0.55.0",
123
- "@unocss/preset-attributify": "0.55.0",
124
- "@unocss/preset-icons": "0.55.0",
125
- "@unocss/preset-mini": "0.55.0",
126
- "@unocss/preset-tagify": "0.55.0",
127
- "@unocss/preset-typography": "0.55.0",
128
- "@unocss/preset-uno": "0.55.0",
129
- "@unocss/preset-web-fonts": "0.55.0",
130
- "@unocss/preset-wind": "0.55.0",
131
- "@unocss/reset": "0.55.0",
132
- "@unocss/transformer-attributify-jsx-babel": "0.55.0",
133
- "@unocss/transformer-compile-class": "0.55.0",
134
- "@unocss/transformer-attributify-jsx": "0.55.0",
135
- "@unocss/transformer-directives": "0.55.0",
136
- "@unocss/transformer-variant-group": "0.55.0",
137
- "@unocss/vite": "0.55.0"
118
+ "@unocss/astro": "0.55.2",
119
+ "@unocss/core": "0.55.2",
120
+ "@unocss/cli": "0.55.2",
121
+ "@unocss/extractor-arbitrary-variants": "0.55.2",
122
+ "@unocss/postcss": "0.55.2",
123
+ "@unocss/preset-attributify": "0.55.2",
124
+ "@unocss/preset-icons": "0.55.2",
125
+ "@unocss/preset-mini": "0.55.2",
126
+ "@unocss/preset-tagify": "0.55.2",
127
+ "@unocss/preset-typography": "0.55.2",
128
+ "@unocss/preset-uno": "0.55.2",
129
+ "@unocss/preset-web-fonts": "0.55.2",
130
+ "@unocss/preset-wind": "0.55.2",
131
+ "@unocss/reset": "0.55.2",
132
+ "@unocss/transformer-attributify-jsx": "0.55.2",
133
+ "@unocss/transformer-attributify-jsx-babel": "0.55.2",
134
+ "@unocss/transformer-compile-class": "0.55.2",
135
+ "@unocss/transformer-directives": "0.55.2",
136
+ "@unocss/transformer-variant-group": "0.55.2",
137
+ "@unocss/vite": "0.55.2"
138
138
  },
139
139
  "devDependencies": {
140
- "@unocss/webpack": "0.55.0"
140
+ "@unocss/webpack": "0.55.2"
141
141
  },
142
142
  "scripts": {
143
143
  "build": "unbuild",