@dargmuesli/nuxt-vio 20.1.3 → 20.1.5

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/nuxt.config.ts +29 -2
  2. package/package.json +3 -3
package/nuxt.config.ts CHANGED
@@ -95,6 +95,9 @@ export default defineNuxtConfig(
95
95
  ],
96
96
  nitro: {
97
97
  compressPublicAssets: true,
98
+ experimental: {
99
+ asyncContext: true,
100
+ },
98
101
  },
99
102
  runtimeConfig: {
100
103
  public: {
@@ -120,7 +123,32 @@ export default defineNuxtConfig(
120
123
  },
121
124
  },
122
125
  vite: {
123
- plugins: [tailwindcss()],
126
+ plugins: [
127
+ tailwindcss(),
128
+ {
129
+ // This plugin suppresses false-positive sourcemap warnings from Tailwind's Vite plugin
130
+ // TODO: remove once tailwind generates sourcemaps for their transforms (https://github.com/tailwindlabs/tailwindcss/discussions/16119)
131
+ apply: 'build',
132
+ name: 'vite-plugin-ignore-sourcemap-warnings',
133
+ configResolved(config) {
134
+ const originalOnWarn = config.build.rollupOptions.onwarn
135
+ config.build.rollupOptions.onwarn = (warning, warn) => {
136
+ if (
137
+ warning.code === 'SOURCEMAP_BROKEN' &&
138
+ warning.plugin === '@tailwindcss/vite:generate:build'
139
+ ) {
140
+ return
141
+ }
142
+
143
+ if (originalOnWarn) {
144
+ originalOnWarn(warning, warn)
145
+ } else {
146
+ warn(warning)
147
+ }
148
+ }
149
+ },
150
+ },
151
+ ],
124
152
  },
125
153
 
126
154
  // modules
@@ -261,7 +289,6 @@ export default defineNuxtConfig(
261
289
  },
262
290
  nitro: {
263
291
  experimental: {
264
- asyncContext: true,
265
292
  openAPI: true,
266
293
  },
267
294
  },
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "eslint-plugin-compat": "6.0.2",
31
31
  "eslint-plugin-prettier": "5.5.4",
32
32
  "eslint-plugin-yml": "1.19.1",
33
- "globals": "16.5.0",
33
+ "globals": "17.0.0",
34
34
  "jiti": "2.6.1",
35
35
  "jose": "6.1.3",
36
36
  "lucide-vue-next": "0.562.0",
@@ -41,7 +41,7 @@
41
41
  "tailwind-merge": "3.4.0",
42
42
  "tw-animate-css": "1.4.0",
43
43
  "vue-sonner": "2.0.9",
44
- "vue-tsc": "3.2.1"
44
+ "vue-tsc": "3.2.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "24.10.4",
@@ -114,5 +114,5 @@
114
114
  "start:static": "serve playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
115
115
  },
116
116
  "type": "module",
117
- "version": "20.1.3"
117
+ "version": "20.1.5"
118
118
  }