@unocss/nuxt 0.61.0 → 0.61.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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +16 -16
package/dist/index.mjs CHANGED
@@ -99,7 +99,7 @@ const index = defineNuxtModule({
99
99
  addTemplate({
100
100
  filename: "uno.config.mjs",
101
101
  async getContents() {
102
- const configPaths = (await Promise.all(nuxt.options._layers.map(
102
+ const configPaths = (await Promise.all(nuxt.options._layers.slice(1).map(
103
103
  (layer) => findPath(options.configFile || ["uno.config", "unocss.config"], { cwd: layer.config.srcDir })
104
104
  ))).filter(Boolean).reverse();
105
105
  return `import { mergeConfigs } from '@unocss/core'
@@ -113,7 +113,7 @@ export default mergeConfigs([${configPaths.map((_, index) => `cfg${index}`).join
113
113
  }
114
114
  async function loadUnoConfig() {
115
115
  const { config: unoConfig } = await loadConfig(process.cwd(), {
116
- configFile: options.nuxtLayers ? resolve(nuxt.options.buildDir, "uno.config.mjs") : options.configFile
116
+ configFile: options.configFile
117
117
  }, [], options);
118
118
  await nuxt.callHook("unocss:config", unoConfig);
119
119
  if (isNuxt3() && nuxt.options.builder === "@nuxt/vite-builder" && nuxt.options.postcss.plugins.cssnano && unoConfig.transformers?.some((t) => t.name === "@unocss/transformer-directives" && t.enforce !== "pre")) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/nuxt",
3
3
  "type": "module",
4
- "version": "0.61.0",
4
+ "version": "0.61.3",
5
5
  "description": "Nuxt module for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -38,23 +38,23 @@
38
38
  "runtime"
39
39
  ],
40
40
  "dependencies": {
41
- "@nuxt/kit": "^3.12.1",
42
- "@unocss/config": "0.61.0",
43
- "@unocss/core": "0.61.0",
44
- "@unocss/preset-icons": "0.61.0",
45
- "@unocss/preset-attributify": "0.61.0",
46
- "@unocss/preset-tagify": "0.61.0",
47
- "@unocss/preset-typography": "0.61.0",
48
- "@unocss/preset-uno": "0.61.0",
49
- "@unocss/preset-web-fonts": "0.61.0",
50
- "@unocss/preset-wind": "0.61.0",
51
- "@unocss/reset": "0.61.0",
52
- "@unocss/vite": "0.61.0",
53
- "@unocss/webpack": "0.61.0",
54
- "unocss": "0.61.0"
41
+ "@nuxt/kit": "^3.12.3",
42
+ "@unocss/config": "0.61.3",
43
+ "@unocss/core": "0.61.3",
44
+ "@unocss/preset-attributify": "0.61.3",
45
+ "@unocss/preset-typography": "0.61.3",
46
+ "@unocss/preset-icons": "0.61.3",
47
+ "@unocss/preset-tagify": "0.61.3",
48
+ "@unocss/preset-uno": "0.61.3",
49
+ "@unocss/preset-wind": "0.61.3",
50
+ "@unocss/preset-web-fonts": "0.61.3",
51
+ "@unocss/reset": "0.61.3",
52
+ "@unocss/webpack": "0.61.3",
53
+ "@unocss/vite": "0.61.3",
54
+ "unocss": "0.61.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@nuxt/schema": "^3.12.1"
57
+ "@nuxt/schema": "^3.12.3"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "unbuild",