提交 7981f81b 作者: 方治民

chore: 更新构建的一些配置和版本依赖

上级 e19e5626
...@@ -21,7 +21,9 @@ function generateUniComponentsTypes() { ...@@ -21,7 +21,9 @@ function generateUniComponentsTypes() {
type ComponentCustomOptions = Hooks type ComponentCustomOptions = Hooks
// uni-app components // uni-app components
type UniComponent = HTMLElement interface UniComponent {
[key in string]: any
}
export interface GlobalComponents { export interface GlobalComponents {
${components.join(',\n\t')} ${components.join(',\n\t')}
} }
......
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
"@types/qs": "^6.9.7", "@types/qs": "^6.9.7",
"@types/stompjs": "^2.3.5", "@types/stompjs": "^2.3.5",
"@types/urijs": "^1.19.19", "@types/urijs": "^1.19.19",
"@typescript-eslint/eslint-plugin": "^5.57.1", "@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.57.1", "@typescript-eslint/parser": "^5.58.0",
"commitizen": "^4.3.0", "commitizen": "^4.3.0",
"conventional-changelog-cli": "^2.2.2", "conventional-changelog-cli": "^2.2.2",
"cz-conventional-changelog": "^3.3.0", "cz-conventional-changelog": "^3.3.0",
...@@ -148,7 +148,6 @@ ...@@ -148,7 +148,6 @@
"stylelint-config-recommended": "^11.0.0", "stylelint-config-recommended": "^11.0.0",
"stylelint-config-standard": "^32.0.0", "stylelint-config-standard": "^32.0.0",
"stylelint-order": "^6.0.3", "stylelint-order": "^6.0.3",
"terser": "^5.16.8",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"unocss": "^0.50.8", "unocss": "^0.50.8",
"unocss-preset-weapp": "^0.5.3", "unocss-preset-weapp": "^0.5.3",
......
...@@ -6,7 +6,9 @@ declare module 'vue' { ...@@ -6,7 +6,9 @@ declare module 'vue' {
type ComponentCustomOptions = Hooks type ComponentCustomOptions = Hooks
// uni-app components // uni-app components
type UniComponent = HTMLElement interface UniComponent {
[key in string]: any
}
export interface GlobalComponents { export interface GlobalComponents {
block: UniComponent block: UniComponent
view: UniComponent view: UniComponent
......
...@@ -30,6 +30,9 @@ export default ({ mode }: ConfigEnv): UserConfig => { ...@@ -30,6 +30,9 @@ export default ({ mode }: ConfigEnv): UserConfig => {
optimizeDeps: { optimizeDeps: {
include: ['lodash-es', '@vueuse/core'], include: ['lodash-es', '@vueuse/core'],
}, },
esbuild: {
drop: ['console', 'debugger'],
},
build: { build: {
target: 'es2015', target: 'es2015',
sourcemap: !!isDevFn(mode), sourcemap: !!isDevFn(mode),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论