vuetify-nuxt-module 0.18.5 → 0.18.7

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.json CHANGED
@@ -2,10 +2,9 @@
2
2
  "name": "vuetify-nuxt-module",
3
3
  "configKey": "vuetify",
4
4
  "compatibility": {
5
- "nuxt": ">=3.9.0",
6
- "bridge": false
5
+ "nuxt": ">=3.9.0"
7
6
  },
8
- "version": "0.18.5",
7
+ "version": "0.18.7",
9
8
  "builder": {
10
9
  "@nuxt/module-builder": "0.8.3",
11
10
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -4,10 +4,10 @@ import { createFilter, version as version$1 } from 'vite';
4
4
  import { resolve, dirname, relative } from 'node:path';
5
5
  import defu from 'defu';
6
6
  import { debounce } from 'perfect-debounce';
7
- import { existsSync, statSync } from 'node:fs';
7
+ import fs, { existsSync, statSync } from 'node:fs';
8
8
  import process from 'node:process';
9
9
  import { createConfigLoader } from 'unconfig';
10
- import { readFile } from 'node:fs/promises';
10
+ import fsp, { readFile } from 'node:fs/promises';
11
11
  import { resolveVuetifyBase, isObject, normalizePath, generateImports } from '@vuetify/loader-shared';
12
12
  import { pathToFileURL } from 'node:url';
13
13
  import { relative as relative$1, isAbsolute } from 'pathe';
@@ -16,7 +16,7 @@ import { transformAssetUrls } from 'vite-plugin-vuetify';
16
16
  import { parseQuery, parseURL } from 'ufo';
17
17
  import destr from 'destr';
18
18
 
19
- const version = "0.18.5";
19
+ const version = "0.18.7";
20
20
 
21
21
  const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
22
22
  const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `\0${VIRTUAL_VUETIFY_CONFIGURATION}`;
@@ -564,11 +564,11 @@ function vuetifyStylesPlugin(options, [major, minor, patch], _logger) {
564
564
  }
565
565
  if (source === "vuetify/styles" || importer && source.endsWith(".css") && isSubdir(vuetifyBase, path.isAbsolute(source) ? source : importer)) {
566
566
  if (options.styles === "sass")
567
- return this.resolve(resolveCss(source), importer, { skipSelf: true, custom });
567
+ return this.resolve(await resolveCss(source), importer, { skipSelf: true, custom });
568
568
  const resolution = await this.resolve(source, importer, { skipSelf: true, custom });
569
569
  if (!resolution)
570
570
  return void 0;
571
- const target = resolveCss(resolution.id);
571
+ const target = await resolveCss(resolution.id);
572
572
  if (isNone) {
573
573
  noneFiles.add(target);
574
574
  return target;
@@ -596,14 +596,15 @@ function vuetifyStylesPlugin(options, [major, minor, patch], _logger) {
596
596
  }
597
597
  function resolveCssFactory() {
598
598
  const mappings = /* @__PURE__ */ new Map();
599
- return (source) => {
599
+ return async (source) => {
600
600
  let mapping = mappings.get(source);
601
601
  if (!mapping) {
602
602
  try {
603
603
  mapping = source.replace(/\.css$/, ".sass");
604
- if (!existsSync(mapping))
605
- mapping = source.replace(/\.css$/, ".scss");
606
- } catch {
604
+ await fsp.access(mapping, fs.constants.R_OK);
605
+ } catch (err) {
606
+ if (!(err instanceof Error && "code" in err && err.code === "ENOENT"))
607
+ throw err;
607
608
  mapping = source.replace(/\.css$/, ".scss");
608
609
  }
609
610
  mappings.set(source, mapping);
@@ -1279,13 +1280,12 @@ function configureVite(configKey, nuxt, ctx) {
1279
1280
  }
1280
1281
  }
1281
1282
  }
1282
- const vuetifyImportOptions = {};
1283
+ const autoImport = { labs: true };
1283
1284
  const ignoreDirectives = ctx.moduleOptions.ignoreDirectives;
1284
1285
  if (ignoreDirectives) {
1285
- const ignore = Array.isArray(ignoreDirectives) ? ignoreDirectives : [ignoreDirectives];
1286
- vuetifyImportOptions.autoImport = { ignore };
1286
+ autoImport.ignore = Array.isArray(ignoreDirectives) ? ignoreDirectives : [ignoreDirectives];
1287
1287
  }
1288
- viteInlineConfig.plugins.push(vuetifyImportPlugin(vuetifyImportOptions));
1288
+ viteInlineConfig.plugins.push(vuetifyImportPlugin({ autoImport }));
1289
1289
  if (typeof ctx.moduleOptions.styles !== "boolean")
1290
1290
  viteInlineConfig.plugins.push(vuetifyStylesPlugin({ styles: ctx.moduleOptions.styles }, ctx.viteVersion, ctx.logger));
1291
1291
  viteInlineConfig.plugins.push(vuetifyConfigurationPlugin(ctx));
@@ -1441,8 +1441,7 @@ const module = defineNuxtModule({
1441
1441
  name: "vuetify-nuxt-module",
1442
1442
  configKey: "vuetify",
1443
1443
  compatibility: {
1444
- nuxt: ">=3.9.0",
1445
- bridge: false
1444
+ nuxt: ">=3.9.0"
1446
1445
  },
1447
1446
  version
1448
1447
  },
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "vuetify-nuxt-module",
3
3
  "type": "module",
4
- "version": "0.18.5",
5
- "packageManager": "pnpm@9.9.0",
4
+ "version": "0.18.7",
5
+ "packageManager": "pnpm@10.11.1",
6
6
  "description": "Zero-Config Nuxt Module for Vuetify",
7
7
  "author": "userquin <userquin@gmail.com>",
8
8
  "license": "MIT",