@dlzn-ui/vite-config 2.0.101 → 2.0.103
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 -6
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -139,9 +139,9 @@ const tDesignAutoImportResolve = (options) => {
|
|
|
139
139
|
];
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
const VIRTUAL_ID = "virtual:dlzn-ui/
|
|
142
|
+
const VIRTUAL_ID = "virtual:dlzn-ui/enhance";
|
|
143
143
|
const RESOLVED_ID = `\0${VIRTUAL_ID}`;
|
|
144
|
-
|
|
144
|
+
function virtualAppEnhance({ isPlay }) {
|
|
145
145
|
return {
|
|
146
146
|
enforce: "pre",
|
|
147
147
|
load(id) {
|
|
@@ -154,7 +154,7 @@ const virtualAppParams = ({ isPlay }) => {
|
|
|
154
154
|
`;
|
|
155
155
|
}
|
|
156
156
|
return `
|
|
157
|
-
import user from "@/
|
|
157
|
+
import user from "@/enhance"
|
|
158
158
|
import layoutsEntryLazyImport from "@/layout/index.ts"
|
|
159
159
|
import viewsEntryLazyImport from "@/views/index.ts"
|
|
160
160
|
|
|
@@ -192,14 +192,14 @@ const virtualAppParams = ({ isPlay }) => {
|
|
|
192
192
|
}
|
|
193
193
|
`;
|
|
194
194
|
},
|
|
195
|
-
name: "dlzn-ui:
|
|
195
|
+
name: "dlzn-ui:enhance",
|
|
196
196
|
resolveId(id) {
|
|
197
197
|
if (id === VIRTUAL_ID) {
|
|
198
198
|
return RESOLVED_ID;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
|
-
}
|
|
202
|
+
}
|
|
203
203
|
|
|
204
204
|
const ENDPOINT = "/__dev__/save-folder-alias";
|
|
205
205
|
const OUTPUT_FILE_WATCH_IGNORE = "**/folder-alias.json";
|
|
@@ -466,7 +466,7 @@ const index = (_env, options) => {
|
|
|
466
466
|
// envParse({
|
|
467
467
|
// dtsPath: 'types/env.d.ts',
|
|
468
468
|
// }),
|
|
469
|
-
|
|
469
|
+
virtualAppEnhance({
|
|
470
470
|
isPlay
|
|
471
471
|
}),
|
|
472
472
|
createHtmlPlugin({
|
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.103",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"vite-plugin-html": "^3.2.2",
|
|
37
37
|
"vite-plugin-vue-tailwind-auto-reference": "^2.0.2",
|
|
38
38
|
"vue-router": "^5.4.0",
|
|
39
|
-
"@dlzn-ui/node-utils": "2.0.
|
|
39
|
+
"@dlzn-ui/node-utils": "2.0.103"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"rimraf": "^6.1.4",
|