@dlzn-ui/vite-config 1.81.0 → 1.82.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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +3 -44
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ConfigEnv, UserConfig } from 'vite';
|
|
2
2
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
3
3
|
|
|
4
|
+
type AutoImports = Array<NonNullable<UnwrapArrayable<Parameters<typeof AutoImport>[0]['imports']>>>;
|
|
4
5
|
type Arrayable<T> = Array<T> | T;
|
|
5
6
|
interface Options {
|
|
6
7
|
autoImportResolvers?: Array<UnwrapArrayable<UnwrapArrayable<NonNullable<Parameters<typeof AutoImport>[0]['resolvers']>>>>;
|
|
7
|
-
autoImports?:
|
|
8
|
+
autoImports?: AutoImports;
|
|
8
9
|
root: string;
|
|
9
10
|
}
|
|
10
11
|
type UnwrapArrayable<T> = T extends Arrayable<infer U> ? U : never;
|
|
11
12
|
declare const _default: (_env: ConfigEnv, options: Options) => UserConfig;
|
|
12
13
|
|
|
13
14
|
export { _default as default };
|
|
15
|
+
export type { AutoImports };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ConfigEnv, UserConfig } from 'vite';
|
|
2
2
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
3
3
|
|
|
4
|
+
type AutoImports = Array<NonNullable<UnwrapArrayable<Parameters<typeof AutoImport>[0]['imports']>>>;
|
|
4
5
|
type Arrayable<T> = Array<T> | T;
|
|
5
6
|
interface Options {
|
|
6
7
|
autoImportResolvers?: Array<UnwrapArrayable<UnwrapArrayable<NonNullable<Parameters<typeof AutoImport>[0]['resolvers']>>>>;
|
|
7
|
-
autoImports?:
|
|
8
|
+
autoImports?: AutoImports;
|
|
8
9
|
root: string;
|
|
9
10
|
}
|
|
10
11
|
type UnwrapArrayable<T> = T extends Arrayable<infer U> ? U : never;
|
|
11
12
|
declare const _default: (_env: ConfigEnv, options: Options) => UserConfig;
|
|
12
13
|
|
|
13
14
|
export { _default as default };
|
|
15
|
+
export type { AutoImports };
|
package/dist/index.mjs
CHANGED
|
@@ -76,8 +76,6 @@ const baseConfigFn = (options) => {
|
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
const optimizeDepsInclude = ["dlzn-ui/components/button", "dlzn-ui/components/card", "dlzn-ui/components/checkbox", "dlzn-ui/components/checkbox-group", "dlzn-ui/components/form", "dlzn-ui/components/icon", "dlzn-ui/components/image", "dlzn-ui/components/image-viewer", "dlzn-ui/components/input", "dlzn-ui/components/input-number", "dlzn-ui/components/link", "dlzn-ui/components/pagination", "dlzn-ui/components/popconfirm", "dlzn-ui/components/popup", "dlzn-ui/components/provider", "dlzn-ui/components/radio-group", "dlzn-ui/components/range-input", "dlzn-ui/components/select", "dlzn-ui/components/slider", "dlzn-ui/components/switch", "dlzn-ui/components/tab-panel", "dlzn-ui/components/tag", "dlzn-ui/components/tag-input", "dlzn-ui/components/textarea", "dlzn-ui/components/tree", "dlzn-ui/components/tree-select", "dlzn-ui/components/upload", "tdesign-vue-next/dist/tdesign.min.js", "path-browserify", "lodash-es", "pinia-plugin-persistedstate", "alova", "alova/fetch", "alova/vue", "@formkit/auto-animate", "@formkit/auto-animate/vue", "dayjs", "dayjs/plugin/customParseFormat.js", "dayjs/plugin/isSameOrBefore.js", "wordcloud", "echarts/charts", "echarts/components", "echarts/core", "echarts/renderers", "@tdesign-vue-next/chat", "vue-echarts", "dompurify", "cron-parser", "cronstrue", "cronstrue/locales/zh_CN", "quartzcron", "@bprogress/core", "element-plus", "element-plus/es/components/config-provider/style/css", "element-plus/es/locale/lang/zh-cn", "element-plus/es/components/date-picker/style/css", "element-plus/es/components/scrollbar/style/css", "color"];
|
|
80
|
-
|
|
81
79
|
const tDesignAutoImportResolve = (options) => {
|
|
82
80
|
const { isProduction, root } = options;
|
|
83
81
|
const tDesignResetComponentsSubFolderFiles = globSync("src/components/tDesignReset/*/Index.vue", {
|
|
@@ -183,9 +181,7 @@ const virtualAppParams = (options) => {
|
|
|
183
181
|
return {
|
|
184
182
|
buildStart() {
|
|
185
183
|
if (!existsSync(userFile)) {
|
|
186
|
-
throw new Error(
|
|
187
|
-
`[dlzn-ui] \u672A\u627E\u5230 ${userFile}\uFF0C\u8BF7\u5BFC\u51FA busFormItems / busComponentInitialValueMap / useListPromiseMap`
|
|
188
|
-
);
|
|
184
|
+
throw new Error(`[dlzn-ui] \u672A\u627E\u5230 ${userFile}`);
|
|
189
185
|
}
|
|
190
186
|
},
|
|
191
187
|
enforce: "pre",
|
|
@@ -470,7 +466,7 @@ const index = (_env, options) => {
|
|
|
470
466
|
},
|
|
471
467
|
// envDir, // 将 env 文件里面的变量注入到 import.meta.env 里面
|
|
472
468
|
optimizeDeps: {
|
|
473
|
-
include:
|
|
469
|
+
include: ["dlzn-ui/components/button", "dlzn-ui/components/card", "dlzn-ui/components/checkbox", "dlzn-ui/components/checkbox-group", "dlzn-ui/components/form", "dlzn-ui/components/icon", "dlzn-ui/components/image", "dlzn-ui/components/image-viewer", "dlzn-ui/components/input", "dlzn-ui/components/input-number", "dlzn-ui/components/link", "dlzn-ui/components/pagination", "dlzn-ui/components/popconfirm", "dlzn-ui/components/popup", "dlzn-ui/components/provider", "dlzn-ui/components/radio-group", "dlzn-ui/components/range-input", "dlzn-ui/components/select", "dlzn-ui/components/slider", "dlzn-ui/components/switch", "dlzn-ui/components/tab-panel", "dlzn-ui/components/tag", "dlzn-ui/components/tag-input", "dlzn-ui/components/textarea", "dlzn-ui/components/tree", "dlzn-ui/components/tree-select", "dlzn-ui/components/upload", "tdesign-vue-next/dist/tdesign.min.js", "path-browserify", "lodash-es", "pinia-plugin-persistedstate", "alova", "alova/fetch", "alova/vue", "@formkit/auto-animate", "@formkit/auto-animate/vue", "dayjs", "dayjs/plugin/customParseFormat.js", "dayjs/plugin/isSameOrBefore.js", "wordcloud", "echarts/charts", "echarts/components", "echarts/core", "echarts/renderers", "@tdesign-vue-next/chat", "vue-echarts", "dompurify", "cron-parser", "cronstrue", "cronstrue/locales/zh_CN", "quartzcron", "@bprogress/core", "element-plus", "element-plus/es/components/config-provider/style/css", "element-plus/es/locale/lang/zh-cn", "element-plus/es/components/date-picker/style/css", "element-plus/es/components/scrollbar/style/css", "color"]
|
|
474
470
|
},
|
|
475
471
|
plugins: [
|
|
476
472
|
// envParse({
|
|
@@ -521,48 +517,11 @@ const index = (_env, options) => {
|
|
|
521
517
|
"vue-router",
|
|
522
518
|
"pinia",
|
|
523
519
|
"@vueuse/core",
|
|
520
|
+
...[{ "from": "dlzn-ui/utils", "imports": ["formatNumber", "isFalsy", "stringDisplay"] }, { "dlzn-ui/plugins/autoImport/$alova": [["default", "$alova"]] }, { "dlzn-ui/plugins/autoImport/$confirm": [["default", "$confirm"]] }, { "dlzn-ui/plugins/autoImport/$dialog": [["default", "$dialog"]] }, { "dlzn-ui/plugins/autoImport/$drawer": [["default", "$drawer"]] }, { "dlzn-ui/plugins/autoImport/$loading": [["default", "$loading"]] }, { "dlzn-ui/plugins/autoImport/$msg": [["default", "$msg"]] }, { "dlzn-ui/plugins/autoImport/$notify": [["default", "$notify"]] }, { "dlzn-ui/plugins/autoImport/dayjs": [["default", "dayjs"]] }, { "@/store/modules/common": [["default", "useCommonStore"]] }, { "@/store/modules/excludeKPname": [["default", "useExcludeKPnameStore"]] }, { "@/store/modules/login": [["default", "useLoginStore"]] }, { "@/store/modules/recentRouters": [["default", "useRecentRoutersStore"]] }, { "@/store/modules/router": [["default", "useRouterStore"]] }, { "@/store/modules/user": [["default", "useUserStore"]] }, { "dlzn-ui/hooks/useContextMenu": [["default", "useContextMenu"]] }, { "dlzn-ui/hooks/useAppContext": [["default", "useAppContext"]] }],
|
|
524
521
|
{
|
|
525
522
|
from: "alova/client",
|
|
526
523
|
imports: ["useRequest", "useWatcher", "usePagination"]
|
|
527
524
|
},
|
|
528
|
-
{
|
|
529
|
-
from: "@/plugins/others/directive.ts",
|
|
530
|
-
imports: ["checkPermissions"]
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
from: "dlzn-ui/utils",
|
|
534
|
-
imports: ["formatNumber", "isFalsy", "stringDisplay"]
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
"dlzn-ui/plugins/autoImport/dayjs": [["default", "dayjs"]]
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"dlzn-ui/plugins/autoImport/$confirm": [["default", "$confirm"]]
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"dlzn-ui/plugins/autoImport/$dialog": [["default", "$dialog"]]
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"dlzn-ui/plugins/autoImport/$loading": [["default", "$loading"]]
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"dlzn-ui/plugins/autoImport/$msg": [["default", "$msg"]]
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"dlzn-ui/plugins/autoImport/$drawer": [["default", "$drawer"]]
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
"dlzn-ui/plugins/autoImport/$notify": [["default", "$notify"]]
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"dlzn-ui/plugins/autoImport/alova": [["default", "$alova"]]
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
"dlzn-ui/hooks/useContextMenu": [["default", "useContextMenu"]]
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"dlzn-ui/hooks/useAppContext": [["default", "useAppContext"]]
|
|
565
|
-
},
|
|
566
525
|
{
|
|
567
526
|
from: "@/components/tDesignReset/TForm/index.ts",
|
|
568
527
|
imports: ["FormItem", "FormInstance", "FormExposed"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dlzn-ui/vite-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.82.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"tinyglobby": "^0.2.17",
|
|
31
31
|
"unplugin-auto-import": "^21.1.0",
|
|
32
32
|
"unplugin-element-plus": "^0.11.2",
|
|
33
|
+
"unplugin-macros": "^0.23.2",
|
|
33
34
|
"unplugin-vue-components": "^32.1.0",
|
|
34
35
|
"vite-plugin-compression2": "^2.5.3",
|
|
35
36
|
"vite-plugin-env-parse": "^1.0.15",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"vite-plugin-imagemin": "^0.6.1",
|
|
38
39
|
"vite-plugin-vue-tailwind-auto-reference": "^2.0.2",
|
|
39
40
|
"vue-router": "^5.2.0",
|
|
40
|
-
"@dlzn-ui/node-utils": "1.
|
|
41
|
+
"@dlzn-ui/node-utils": "1.82.0"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"rimraf": "^6.1.3",
|