@antdv-next/nuxt 1.0.3 → 1.0.5
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 +12 -9
- package/package.json +6 -6
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -8,6 +8,9 @@ const iconLibName = `@antdv-next/icons`;
|
|
|
8
8
|
const iconsSvgLibName = "@ant-design/icons-svg";
|
|
9
9
|
const pickerLibName = "@v-c/picker";
|
|
10
10
|
const dayjsLibName = "dayjs";
|
|
11
|
+
function transpileExceptViteClientDev(dep) {
|
|
12
|
+
return (env) => env.isClient === true && env.isDev ? false : dep;
|
|
13
|
+
}
|
|
11
14
|
const module$1 = defineNuxtModule({
|
|
12
15
|
meta: {
|
|
13
16
|
name: "@antdv-next/nuxt",
|
|
@@ -24,18 +27,18 @@ const module$1 = defineNuxtModule({
|
|
|
24
27
|
return;
|
|
25
28
|
}
|
|
26
29
|
const transpileList = _nuxt.options.build.transpile;
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
transpileList.push(dep);
|
|
30
|
-
}
|
|
30
|
+
const pushTranspileFn = (fn) => {
|
|
31
|
+
transpileList.push(fn);
|
|
31
32
|
};
|
|
32
33
|
if (_options.component !== false) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
pushTranspileFn(transpileExceptViteClientDev(libName));
|
|
35
|
+
pushTranspileFn(transpileExceptViteClientDev(pickerLibName));
|
|
36
|
+
pushTranspileFn(transpileExceptViteClientDev(dayjsLibName));
|
|
37
|
+
}
|
|
38
|
+
if (_options.icon === true) {
|
|
39
|
+
pushTranspileFn(transpileExceptViteClientDev(iconLibName));
|
|
40
|
+
pushTranspileFn(transpileExceptViteClientDev(iconsSvgLibName));
|
|
36
41
|
}
|
|
37
|
-
appendTranspile(iconLibName);
|
|
38
|
-
appendTranspile(iconsSvgLibName);
|
|
39
42
|
if (_options.component !== false) {
|
|
40
43
|
const filteredComponents = components.filter((comp) => {
|
|
41
44
|
if (_options.include?.length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antdv-next/nuxt",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Antdv Next Nuxt module",
|
|
5
5
|
"repository": "antdv-next/nuxt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"nuxt": ">=4.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@antdv-next/cssinjs": "^1.0.
|
|
34
|
+
"@antdv-next/cssinjs": "^1.0.6",
|
|
35
35
|
"@nuxt/kit": "^4.4.2",
|
|
36
36
|
"vite-plugin-dayjs": "^1.0.1"
|
|
37
37
|
},
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"@nuxt/test-utils": "^4.0.0",
|
|
45
45
|
"@types/jsdom": "^27.0.0",
|
|
46
46
|
"@types/node": "latest",
|
|
47
|
-
"antdv-next": "^1.1.
|
|
47
|
+
"antdv-next": "^1.1.7",
|
|
48
48
|
"bumpp": "^10.4.1",
|
|
49
49
|
"changelogen": "^0.6.2",
|
|
50
50
|
"eslint": "^9.39.4",
|
|
51
51
|
"jsdom": "^28.1.0",
|
|
52
|
-
"nitropack": "^2.13.
|
|
52
|
+
"nitropack": "^2.13.2",
|
|
53
53
|
"nuxt": "^4.4.2",
|
|
54
54
|
"typescript": "~5.9.3",
|
|
55
|
-
"vitest": "^4.1.
|
|
56
|
-
"vue": "^3.5.
|
|
55
|
+
"vitest": "^4.1.1",
|
|
56
|
+
"vue": "^3.5.31",
|
|
57
57
|
"vue-tsc": "^3.2.6"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|