提交 7981f81b 作者: 方治民

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

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