@dargmuesli/nuxt-vio 20.1.4 → 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 +26 -1
  2. package/package.json +2 -2
package/nuxt.config.ts CHANGED
@@ -123,7 +123,32 @@ export default defineNuxtConfig(
123
123
  },
124
124
  },
125
125
  vite: {
126
- 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
+ ],
127
152
  },
128
153
 
129
154
  // modules
package/package.json CHANGED
@@ -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.4"
117
+ "version": "20.1.5"
118
118
  }