@unocss/nuxt 0.58.9 → 0.59.0

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.mjs CHANGED
@@ -102,8 +102,8 @@ const index = defineNuxtModule({
102
102
  const preset = nuxt.options.postcss.plugins.cssnano.preset;
103
103
  nuxt.options.postcss.plugins.cssnano = {
104
104
  preset: [preset?.[0] || "default", Object.assign(
105
- preset?.[1] || {},
106
- { mergeRules: false, normalizeWhitespace: false, discardComments: false }
105
+ { mergeRules: false, normalizeWhitespace: false, discardComments: false },
106
+ preset?.[1]
107
107
  )]
108
108
  };
109
109
  }
package/index.cjs CHANGED
@@ -1,5 +1,9 @@
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true })
4
+
1
5
  // CommonJS proxy to bypass jiti transforms from nuxt 2 and using native ESM
2
- module.exports = function (...args) {
6
+ exports.default = function (...args) {
3
7
  return import('./dist/index.mjs').then(m => m.default.call(this, ...args))
4
8
  }
5
9
 
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/nuxt",
3
- "version": "0.58.9",
3
+ "type": "module",
4
+ "version": "0.59.0",
4
5
  "description": "Nuxt module for UnoCSS",
5
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
7
  "license": "MIT",
@@ -23,37 +24,37 @@
23
24
  "sideEffects": false,
24
25
  "exports": {
25
26
  ".": {
26
- "types": "./dist/index.d.ts",
27
- "import": "./dist/index.mjs",
28
- "require": "./index.cjs"
27
+ "types": "./dist/index.d.mts",
28
+ "require": "./index.cjs",
29
+ "default": "./dist/index.mjs"
29
30
  }
30
31
  },
31
- "main": "./index.cjs",
32
- "module": "./dist/index.mjs",
33
- "types": "./dist/index.d.ts",
32
+ "main": "dist/index.mjs",
33
+ "module": "dist/index.mjs",
34
+ "types": "dist/index.d.ts",
34
35
  "files": [
35
36
  "dist",
36
37
  "index.cjs",
37
38
  "runtime"
38
39
  ],
39
40
  "dependencies": {
40
- "@nuxt/kit": "^3.11.1",
41
- "@unocss/config": "0.58.9",
42
- "@unocss/preset-icons": "0.58.9",
43
- "@unocss/preset-attributify": "0.58.9",
44
- "@unocss/preset-tagify": "0.58.9",
45
- "@unocss/preset-typography": "0.58.9",
46
- "@unocss/preset-uno": "0.58.9",
47
- "@unocss/preset-web-fonts": "0.58.9",
48
- "@unocss/preset-wind": "0.58.9",
49
- "@unocss/reset": "0.58.9",
50
- "@unocss/vite": "0.58.9",
51
- "@unocss/webpack": "0.58.9",
52
- "@unocss/core": "0.58.9",
53
- "unocss": "0.58.9"
41
+ "@nuxt/kit": "^3.11.2",
42
+ "@unocss/config": "0.59.0",
43
+ "@unocss/core": "0.59.0",
44
+ "@unocss/preset-attributify": "0.59.0",
45
+ "@unocss/preset-icons": "0.59.0",
46
+ "@unocss/preset-tagify": "0.59.0",
47
+ "@unocss/preset-typography": "0.59.0",
48
+ "@unocss/preset-uno": "0.59.0",
49
+ "@unocss/preset-wind": "0.59.0",
50
+ "@unocss/preset-web-fonts": "0.59.0",
51
+ "@unocss/vite": "0.59.0",
52
+ "@unocss/reset": "0.59.0",
53
+ "@unocss/webpack": "0.59.0",
54
+ "unocss": "0.59.0"
54
55
  },
55
56
  "devDependencies": {
56
- "@nuxt/schema": "^3.11.1"
57
+ "@nuxt/schema": "^3.11.2"
57
58
  },
58
59
  "scripts": {
59
60
  "build": "unbuild",