@dlzn-ui/vite-config 2.0.0 → 2.0.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/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path, { basename, resolve, relative, posix } from 'node:path';
|
|
2
2
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
3
3
|
import Components from 'unplugin-vue-components/vite';
|
|
4
|
-
import { loadEnv, mergeConfig } from 'vite';
|
|
4
|
+
import { normalizePath, loadEnv, mergeConfig } from 'vite';
|
|
5
5
|
import { parseLoadedEnv } from 'vite-plugin-env-parse';
|
|
6
6
|
import { createHtmlPlugin } from 'vite-plugin-html';
|
|
7
7
|
import VueRouter from 'vue-router/vite';
|
|
@@ -154,13 +154,13 @@ const virtualAppParams = (options) => {
|
|
|
154
154
|
if (id !== RESOLVED_ID) {
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
const userId = `/${relative(options.root, userFile)
|
|
157
|
+
const userId = `/${normalizePath(relative(options.root, userFile))}`;
|
|
158
158
|
return `
|
|
159
159
|
import user from ${JSON.stringify(userId)}
|
|
160
160
|
|
|
161
161
|
export default {
|
|
162
162
|
...user,
|
|
163
|
-
|
|
163
|
+
viewsEntryLazyImport: import.meta.glob(${JSON.stringify(viewsGlob)}),
|
|
164
164
|
}
|
|
165
165
|
`;
|
|
166
166
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dlzn-ui/vite-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"vite-plugin-imagemin": "^0.6.1",
|
|
38
38
|
"vite-plugin-vue-tailwind-auto-reference": "^2.0.2",
|
|
39
39
|
"vue-router": "^5.2.0",
|
|
40
|
-
"@dlzn-ui/node-utils": "2.0.
|
|
40
|
+
"@dlzn-ui/node-utils": "2.0.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"rimraf": "^6.1.3",
|