vuetify-nuxt-module 0.10.2 → 0.11.0
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 +1 -1
- package/dist/module.mjs +10 -4
- package/package.json +12 -9
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { parseQuery, parseURL } from 'ufo';
|
|
|
14
14
|
import destr from 'destr';
|
|
15
15
|
import { transformAssetUrls } from 'vite-plugin-vuetify';
|
|
16
16
|
|
|
17
|
-
const version = "0.
|
|
17
|
+
const version = "0.11.0";
|
|
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)}`;
|
|
@@ -103,8 +103,12 @@ async function mergeVuetifyModules(options, nuxt) {
|
|
|
103
103
|
nuxt.options.rootDir,
|
|
104
104
|
options.vuetifyOptions
|
|
105
105
|
);
|
|
106
|
-
if (resolvedOptions.sources.length)
|
|
107
|
-
|
|
106
|
+
if (nuxt.options.dev && resolvedOptions.sources.length) {
|
|
107
|
+
if (nuxt.options.ssr)
|
|
108
|
+
resolvedOptions.sources.forEach((s) => nuxt.options.watch.push(s.replace(/\\/g, "/")));
|
|
109
|
+
else
|
|
110
|
+
resolvedOptions.sources.forEach((s) => vuetifyConfigurationFilesToWatch.add(s.replace(/\\/g, "/")));
|
|
111
|
+
}
|
|
108
112
|
moduleOptions.push({
|
|
109
113
|
moduleOptions: options.moduleOptions,
|
|
110
114
|
vuetifyOptions: resolvedOptions.config
|
|
@@ -498,7 +502,7 @@ function isSubdir(root, test) {
|
|
|
498
502
|
const relative$1 = relative(root, test);
|
|
499
503
|
return relative$1 && !relative$1.startsWith("..") && !isAbsolute(relative$1);
|
|
500
504
|
}
|
|
501
|
-
function vuetifyStylesPlugin(options,
|
|
505
|
+
function vuetifyStylesPlugin(options, _logger) {
|
|
502
506
|
const vuetifyBase = resolveVuetifyBase();
|
|
503
507
|
let configFile;
|
|
504
508
|
const tempFiles = /* @__PURE__ */ new Map();
|
|
@@ -546,6 +550,8 @@ function vuetifyStylesPlugin(options, logger) {
|
|
|
546
550
|
const file = /^\/@fs\/plugin-vuetify\/lib\/(.*?)(\?.*)?$/.exec(id)[1];
|
|
547
551
|
return tempFiles.get(file);
|
|
548
552
|
}
|
|
553
|
+
if (id.includes("plugin-vuetify/lib"))
|
|
554
|
+
return "";
|
|
549
555
|
}
|
|
550
556
|
};
|
|
551
557
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuetify-nuxt-module",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "0.11.0",
|
|
5
|
+
"packageManager": "pnpm@8.15.2",
|
|
6
6
|
"description": "Zero-Config Nuxt Module for Vuetify",
|
|
7
7
|
"author": "userquin <userquin@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"ufo": "^1.3.2",
|
|
75
75
|
"unconfig": "^0.3.11",
|
|
76
76
|
"vite-plugin-vuetify": "^2.0.1",
|
|
77
|
-
"vuetify": "^3.
|
|
77
|
+
"vuetify": "^3.5.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@antfu/eslint-config": "^0.43.1",
|
|
@@ -88,24 +88,27 @@
|
|
|
88
88
|
"@mdi/js": "^7.3.67",
|
|
89
89
|
"@nuxt/devtools": "^1.0.8",
|
|
90
90
|
"@nuxt/module-builder": "^0.5.5",
|
|
91
|
-
"@nuxt/schema": "^3.
|
|
92
|
-
"@nuxt/test-utils": "^3.
|
|
91
|
+
"@nuxt/schema": "^3.10.2",
|
|
92
|
+
"@nuxt/test-utils": "^3.11.0",
|
|
93
93
|
"@nuxtjs/i18n": "^8.0.0",
|
|
94
94
|
"@parcel/watcher": "^2.3.0",
|
|
95
95
|
"@types/node": "^18",
|
|
96
|
-
"@unocss/nuxt": "^0.58.
|
|
96
|
+
"@unocss/nuxt": "^0.58.4",
|
|
97
97
|
"bumpp": "^9.2.0",
|
|
98
98
|
"eslint": "^8.54.0",
|
|
99
99
|
"luxon": "^3.4.3",
|
|
100
|
-
"nuxt": "^3.
|
|
100
|
+
"nuxt": "^3.10.2",
|
|
101
101
|
"publint": "^0.2.5",
|
|
102
102
|
"rimraf": "^5.0.5",
|
|
103
103
|
"sass": "^1.63.6",
|
|
104
104
|
"typescript": "^5.3.3",
|
|
105
|
-
"vite": "^5.0.
|
|
105
|
+
"vite": "^5.0.12",
|
|
106
106
|
"vitest": "^1.1.3",
|
|
107
107
|
"vue-tsc": "^1.8.27"
|
|
108
108
|
},
|
|
109
|
+
"resolutions": {
|
|
110
|
+
"@nuxt/kit": "^3.10.2"
|
|
111
|
+
},
|
|
109
112
|
"build": {
|
|
110
113
|
"externals": [
|
|
111
114
|
"@vuetify/loader-shared",
|
|
@@ -137,4 +140,4 @@
|
|
|
137
140
|
"installDependencies": false,
|
|
138
141
|
"startCommand": "node .stackblitz.js && pnpm install && nr prepack && nr dev:prepare && nr dev"
|
|
139
142
|
}
|
|
140
|
-
}
|
|
143
|
+
}
|