vuetify-nuxt-module 0.15.0 → 0.15.2

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/module.d.mts CHANGED
@@ -241,6 +241,8 @@ interface MOptions {
241
241
  *
242
242
  * @see https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin
243
243
  * @see https://github.com/userquin/vuetify-nuxt-module/issues/78 and https://github.com/userquin/vuetify-nuxt-module/issues/74
244
+ *
245
+ * @default true
244
246
  */
245
247
  styles?: true | 'none' | 'sass' | {
246
248
  configFile: string;
@@ -251,6 +253,12 @@ interface MOptions {
251
253
  * @default true
252
254
  */
253
255
  includeTransformAssetsUrls?: boolean | Record<string, string[]>;
256
+ /**
257
+ * Directives Vuetify Vite Plugin should ignore.
258
+ *
259
+ * @since v0.15.1
260
+ */
261
+ ignoreDirectives?: DirectiveName | DirectiveName[];
254
262
  /**
255
263
  * Vuetify SSR client hints.
256
264
  *
package/dist/module.d.ts CHANGED
@@ -241,6 +241,8 @@ interface MOptions {
241
241
  *
242
242
  * @see https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin
243
243
  * @see https://github.com/userquin/vuetify-nuxt-module/issues/78 and https://github.com/userquin/vuetify-nuxt-module/issues/74
244
+ *
245
+ * @default true
244
246
  */
245
247
  styles?: true | 'none' | 'sass' | {
246
248
  configFile: string;
@@ -251,6 +253,12 @@ interface MOptions {
251
253
  * @default true
252
254
  */
253
255
  includeTransformAssetsUrls?: boolean | Record<string, string[]>;
256
+ /**
257
+ * Directives Vuetify Vite Plugin should ignore.
258
+ *
259
+ * @since v0.15.1
260
+ */
261
+ ignoreDirectives?: DirectiveName | DirectiveName[];
254
262
  /**
255
263
  * Vuetify SSR client hints.
256
264
  *
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "nuxt": ">=3.9.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "0.15.0"
8
+ "version": "0.15.2"
9
9
  }
package/dist/module.mjs CHANGED
@@ -14,7 +14,7 @@ import { pathToFileURL } from 'node:url';
14
14
  import { parseQuery, parseURL } from 'ufo';
15
15
  import destr from 'destr';
16
16
 
17
- const version = "0.15.0";
17
+ const version = "0.15.2";
18
18
 
19
19
  const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
20
20
  const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `/@nuxt-vuetify-configuration/${VIRTUAL_VUETIFY_CONFIGURATION.slice("virtual:".length)}`;
@@ -1215,7 +1215,13 @@ function configureVite(configKey, nuxt, ctx) {
1215
1215
  viteInlineConfig.vue.template ??= {};
1216
1216
  viteInlineConfig.vue.template.transformAssetUrls = transformAssetUrls;
1217
1217
  }
1218
- viteInlineConfig.plugins.push(vuetifyImportPlugin({}));
1218
+ const vuetifyImportOptions = {};
1219
+ const ignoreDirectives = ctx.moduleOptions.ignoreDirectives;
1220
+ if (ignoreDirectives) {
1221
+ const ignore = Array.isArray(ignoreDirectives) ? ignoreDirectives : [ignoreDirectives];
1222
+ vuetifyImportOptions.autoImport = { ignore };
1223
+ }
1224
+ viteInlineConfig.plugins.push(vuetifyImportPlugin(vuetifyImportOptions));
1219
1225
  viteInlineConfig.plugins.push(vuetifyStylesPlugin({ styles: ctx.moduleOptions.styles }, ctx.logger));
1220
1226
  viteInlineConfig.plugins.push(vuetifyConfigurationPlugin(ctx));
1221
1227
  viteInlineConfig.plugins.push(vuetifyIconsPlugin(ctx));
@@ -1371,6 +1377,7 @@ const module = defineNuxtModule({
1371
1377
  },
1372
1378
  moduleOptions: {
1373
1379
  importComposables: true,
1380
+ includeTransformAssetsUrls: true,
1374
1381
  styles: true
1375
1382
  }
1376
1383
  }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vuetify-nuxt-module",
3
3
  "type": "module",
4
- "version": "0.15.0",
4
+ "version": "0.15.2",
5
5
  "packageManager": "pnpm@9.5.0",
6
6
  "description": "Zero-Config Nuxt Module for Vuetify",
7
7
  "author": "userquin <userquin@gmail.com>",
@@ -142,4 +142,4 @@
142
142
  "installDependencies": false,
143
143
  "startCommand": "node .stackblitz.js && pnpm install && nr prepack && nr dev:prepare && nr dev"
144
144
  }
145
- }
145
+ }