@octohash/vite-config 0.3.2 → 0.3.4
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/index.mjs +6 -4
- package/package.json +17 -17
package/dist/index.mjs
CHANGED
|
@@ -10776,14 +10776,16 @@ function defineLibConfig(options) {
|
|
|
10776
10776
|
build: {
|
|
10777
10777
|
lib: {
|
|
10778
10778
|
entry: "src/index.ts",
|
|
10779
|
-
fileName: () =>
|
|
10779
|
+
fileName: (_, name) => `${name}.mjs`,
|
|
10780
10780
|
formats: ["es"]
|
|
10781
10781
|
},
|
|
10782
10782
|
rollupOptions: {
|
|
10783
|
+
output: {
|
|
10784
|
+
preserveModules: true,
|
|
10785
|
+
preserveModulesRoot: "src"
|
|
10786
|
+
},
|
|
10783
10787
|
external: (id) => {
|
|
10784
|
-
return externalPackages.some(
|
|
10785
|
-
(pkg) => id === pkg || id.startsWith(`${pkg}/`)
|
|
10786
|
-
);
|
|
10788
|
+
return externalPackages.some((pkg) => id === pkg || id.startsWith(`${pkg}/`));
|
|
10787
10789
|
}
|
|
10788
10790
|
}
|
|
10789
10791
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octohash/vite-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.4",
|
|
5
5
|
"description": "Opinionated Vite config preset.",
|
|
6
6
|
"author": "jinghaihan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@antfu/install-pkg": "^1.1.0",
|
|
39
39
|
"@clack/prompts": "^0.11.0",
|
|
40
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
41
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
40
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
41
|
+
"@vitejs/plugin-vue-jsx": "^5.1.2",
|
|
42
42
|
"find-up": "^8.0.0",
|
|
43
43
|
"pathe": "^2.0.3",
|
|
44
|
-
"unplugin-auto-import": "^20.
|
|
44
|
+
"unplugin-auto-import": "^20.3.0",
|
|
45
45
|
"unplugin-vue-components": "^30.0.0",
|
|
46
|
-
"unplugin-vue-router": "^0.
|
|
46
|
+
"unplugin-vue-router": "^0.19.0",
|
|
47
47
|
"vite-bundle-visualizer": "^1.2.1",
|
|
48
48
|
"vite-plugin-dts": "^4.5.4",
|
|
49
49
|
"vite-plugin-dynamic-base": "^1.2.0"
|
|
@@ -51,27 +51,27 @@
|
|
|
51
51
|
"optionalDependencies": {
|
|
52
52
|
"@intlify/unplugin-vue-i18n": "^11.0.1",
|
|
53
53
|
"@originjs/vite-plugin-federation": "^1.4.1",
|
|
54
|
-
"vite-plugin-jspm": "^0.6.
|
|
55
|
-
"vite-plugin-vue-devtools": "^8.0.
|
|
54
|
+
"vite-plugin-jspm": "^0.6.2",
|
|
55
|
+
"vite-plugin-vue-devtools": "^8.0.5"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@antfu/eslint-config": "^6.
|
|
59
|
-
"@jspm/generator": "^2.
|
|
60
|
-
"@types/node": "^24.
|
|
61
|
-
"bumpp": "^10.3.
|
|
62
|
-
"dayjs": "^1.11.
|
|
58
|
+
"@antfu/eslint-config": "^6.6.1",
|
|
59
|
+
"@jspm/generator": "^2.8.0",
|
|
60
|
+
"@types/node": "^24.10.2",
|
|
61
|
+
"bumpp": "^10.3.2",
|
|
62
|
+
"dayjs": "^1.11.19",
|
|
63
63
|
"deepmerge": "^4.3.1",
|
|
64
|
-
"eslint": "^9.
|
|
65
|
-
"lint-staged": "^16.2.
|
|
64
|
+
"eslint": "^9.39.1",
|
|
65
|
+
"lint-staged": "^16.2.7",
|
|
66
66
|
"local-pkg": "^1.1.2",
|
|
67
67
|
"pkg-types": "^2.3.0",
|
|
68
|
-
"pncat": "^0.7.
|
|
68
|
+
"pncat": "^0.7.7",
|
|
69
69
|
"simple-git-hooks": "^2.13.1",
|
|
70
|
-
"taze": "^19.
|
|
70
|
+
"taze": "^19.9.2",
|
|
71
71
|
"tinyglobby": "^0.2.15",
|
|
72
72
|
"typescript": "^5.9.3",
|
|
73
73
|
"unbuild": "^3.6.1",
|
|
74
|
-
"vitest": "^4.0.
|
|
74
|
+
"vitest": "^4.0.15"
|
|
75
75
|
},
|
|
76
76
|
"simple-git-hooks": {
|
|
77
77
|
"pre-commit": "pnpm lint-staged"
|