@unocss/preset-uno 0.45.21 → 0.45.23

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.cjs CHANGED
@@ -58,6 +58,7 @@ const variantColorMix = (matcher) => {
58
58
  const presetUno = (options = {}) => {
59
59
  options.dark = options.dark ?? "class";
60
60
  options.attributifyPseudo = options.attributifyPseudo ?? false;
61
+ options.preflight = options.preflight ?? true;
61
62
  return {
62
63
  name: "@unocss/preset-uno",
63
64
  theme: presetWind.theme,
@@ -68,7 +69,7 @@ const presetUno = (options = {}) => {
68
69
  variantColorMix
69
70
  ],
70
71
  options,
71
- preflights: presetMini.preflights,
72
+ preflights: options.preflight ? presetMini.preflights : [],
72
73
  prefix: options.prefix
73
74
  };
74
75
  };
package/dist/index.mjs CHANGED
@@ -54,6 +54,7 @@ const variantColorMix = (matcher) => {
54
54
  const presetUno = (options = {}) => {
55
55
  options.dark = options.dark ?? "class";
56
56
  options.attributifyPseudo = options.attributifyPseudo ?? false;
57
+ options.preflight = options.preflight ?? true;
57
58
  return {
58
59
  name: "@unocss/preset-uno",
59
60
  theme,
@@ -64,7 +65,7 @@ const presetUno = (options = {}) => {
64
65
  variantColorMix
65
66
  ],
66
67
  options,
67
- preflights,
68
+ preflights: options.preflight ? preflights : [],
68
69
  prefix: options.prefix
69
70
  };
70
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-uno",
3
- "version": "0.45.21",
3
+ "version": "0.45.23",
4
4
  "description": "The default preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -50,9 +50,10 @@
50
50
  "*.css"
51
51
  ],
52
52
  "dependencies": {
53
- "@unocss/core": "0.45.21",
54
- "@unocss/preset-mini": "0.45.21",
55
- "@unocss/preset-wind": "0.45.21"
53
+ "@unocss/core": "0.45.23",
54
+ "@unocss/preset-mini": "0.45.23",
55
+ "@unocss/preset-wind": "0.45.23",
56
+ "pathe": "^0.3.7"
56
57
  },
57
58
  "scripts": {
58
59
  "build": "unbuild",