vuetify-nuxt-module 0.15.0 → 0.15.1

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
@@ -251,6 +251,12 @@ interface MOptions {
251
251
  * @default true
252
252
  */
253
253
  includeTransformAssetsUrls?: boolean | Record<string, string[]>;
254
+ /**
255
+ * Directives Vuetify Vite Plugin should ignore.
256
+ *
257
+ * @since v0.15.1
258
+ */
259
+ ignoreDirectives?: DirectiveName | DirectiveName[];
254
260
  /**
255
261
  * Vuetify SSR client hints.
256
262
  *
package/dist/module.d.ts CHANGED
@@ -251,6 +251,12 @@ interface MOptions {
251
251
  * @default true
252
252
  */
253
253
  includeTransformAssetsUrls?: boolean | Record<string, string[]>;
254
+ /**
255
+ * Directives Vuetify Vite Plugin should ignore.
256
+ *
257
+ * @since v0.15.1
258
+ */
259
+ ignoreDirectives?: DirectiveName | DirectiveName[];
254
260
  /**
255
261
  * Vuetify SSR client hints.
256
262
  *
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.1"
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.1";
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));
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.1",
5
5
  "packageManager": "pnpm@9.5.0",
6
6
  "description": "Zero-Config Nuxt Module for Vuetify",
7
7
  "author": "userquin <userquin@gmail.com>",