vuetify-nuxt-module 0.4.0 → 0.4.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/README.md CHANGED
@@ -222,7 +222,7 @@ vuetify: {
222
222
  defaultSet: 'fa-svg',
223
223
  svg: {
224
224
  fa: {
225
- libraries: [/* default export? */ false, /* export name */ 'fas', /* library */ '@fortawesome/free-solid-svg-icons']
225
+ libraries: [[/* default export? */ false, /* export name */ 'fas', /* library */ '@fortawesome/free-solid-svg-icons']]
226
226
  }
227
227
  }
228
228
  }
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.4.0"
7
+ "version": "0.4.1"
8
8
  }
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ import { resolveVuetifyBase, normalizePath, writeStyles, cacheDir } from '@vueti
6
6
  import { isAbsolute, join, relative } from 'pathe';
7
7
  import { normalizePath as normalizePath$1 } from 'vite';
8
8
 
9
- const version = "0.4.0";
9
+ const version = "0.4.1";
10
10
 
11
11
  function isSubdir(root, test) {
12
12
  const relative$1 = relative(root, test);
@@ -232,13 +232,15 @@ export function vuetifyConfiguration() {
232
232
  components: new Set(components ? Array.isArray(components) ? components : [components] : []),
233
233
  labComponents: /* @__PURE__ */ new Set()
234
234
  };
235
- if (typeof directives === "boolean") {
236
- config.imports.push("import * as directives from 'vuetify/directives'");
237
- config.directives = "options.directives = directives";
238
- } else {
239
- const useDirectives = Array.isArray(directives) ? directives : [directives];
240
- config.imports.push(useDirectives.map((d) => `import { ${d} } from 'vuetify/directives/${d}'`).join("\n"));
241
- config.directives = `options.directives = {${useDirectives.join(",")}}`;
235
+ if (directives) {
236
+ if (typeof directives === "boolean") {
237
+ config.imports.push("import * as directives from 'vuetify/directives'");
238
+ config.directives = "options.directives = directives";
239
+ } else {
240
+ const useDirectives = Array.isArray(directives) ? directives : [directives];
241
+ config.imports.push(useDirectives.map((d) => `import { ${d} } from 'vuetify/directives/${d}'`).join("\n"));
242
+ config.directives = `options.directives = {${useDirectives.join(",")}}`;
243
+ }
242
244
  }
243
245
  config.imports.push(...Array.from(config.components).map((c) => `import {${c}} from 'vuetify/components/${c}'`));
244
246
  Object.entries(config.aliases).forEach(([key, component]) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vuetify-nuxt-module",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "packageManager": "pnpm@8.6.6",
6
6
  "description": "Zero-Config Nuxt Module for Vuetify ",
7
7
  "author": "userquin <userquin@gmail.com>",