fix: 升级taro版本。
This commit is contained in:
@@ -58,8 +58,7 @@ const config = {
|
||||
compiler: {
|
||||
type: 'webpack5',
|
||||
prebundle: {
|
||||
enable: true,
|
||||
exclude: ['@nutui/icons-vue-taro']
|
||||
enable: false
|
||||
}
|
||||
},
|
||||
cache: {
|
||||
|
||||
49
package.json
49
package.json
@@ -40,22 +40,21 @@
|
||||
"@nutui/icons-vue-taro": "^0.0.8",
|
||||
"@nutui/nutui-taro": "^4.3.4",
|
||||
"@qiun/ucharts": "^2.5.0-20230101",
|
||||
"@tarojs/components": "3.5.10",
|
||||
"@tarojs/helper": "3.5.10",
|
||||
"@tarojs/plugin-framework-vue3": "3.5.10",
|
||||
"@tarojs/plugin-html": "3.5.10",
|
||||
"@tarojs/plugin-platform-alipay": "3.5.10",
|
||||
"@tarojs/plugin-platform-jd": "3.5.10",
|
||||
"@tarojs/plugin-platform-qq": "3.5.10",
|
||||
"@tarojs/plugin-platform-swan": "3.5.10",
|
||||
"@tarojs/plugin-platform-tt": "3.5.10",
|
||||
"@tarojs/plugin-platform-weapp": "3.5.10",
|
||||
"@tarojs/router": "3.5.10",
|
||||
"@tarojs/runtime": "3.5.10",
|
||||
"@tarojs/shared": "3.5.10",
|
||||
"@tarojs/taro": "3.5.10",
|
||||
"@tarojs/taro-h5": "3.5.10",
|
||||
"cache-loader": "^4.1.0",
|
||||
"@tarojs/components": "3.6.23",
|
||||
"@tarojs/helper": "3.6.23",
|
||||
"@tarojs/plugin-framework-vue3": "3.6.23",
|
||||
"@tarojs/plugin-html": "3.6.23",
|
||||
"@tarojs/plugin-platform-alipay": "3.6.23",
|
||||
"@tarojs/plugin-platform-jd": "3.6.23",
|
||||
"@tarojs/plugin-platform-qq": "3.6.23",
|
||||
"@tarojs/plugin-platform-swan": "3.6.23",
|
||||
"@tarojs/plugin-platform-tt": "3.6.23",
|
||||
"@tarojs/plugin-platform-weapp": "3.6.23",
|
||||
"@tarojs/router": "3.6.23",
|
||||
"@tarojs/runtime": "3.6.23",
|
||||
"@tarojs/shared": "3.6.23",
|
||||
"@tarojs/taro": "3.6.23",
|
||||
"@tarojs/taro-h5": "3.6.23",
|
||||
"crypto-js": "^4.2.0",
|
||||
"jsencrypt": "^3.3.2",
|
||||
"jsrsasign": "^11.1.0",
|
||||
@@ -67,31 +66,33 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.0",
|
||||
"@nutui/auto-import-resolver": "^1.0.0",
|
||||
"@tarojs/cli": "3.5.10",
|
||||
"@tarojs/plugin-framework-react": "^3.6.24",
|
||||
"@tarojs/webpack5-runner": "3.5.10",
|
||||
"@tarojs/cli": "3.6.23",
|
||||
"@tarojs/webpack5-runner": "3.6.23",
|
||||
"@types/webpack-env": "^1.13.6",
|
||||
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
||||
"@typescript-eslint/parser": "^5.20.0",
|
||||
"@vue/babel-plugin-jsx": "^1.0.6",
|
||||
"@vue/compiler-sfc": "^3.0.0",
|
||||
"babel-preset-taro": "3.5.10",
|
||||
"babel-preset-taro": "3.6.23",
|
||||
"css-loader": "3.4.2",
|
||||
"eslint": "^8.12.0",
|
||||
"eslint-config-taro": "3.5.10",
|
||||
"eslint-config-taro": "3.6.23",
|
||||
"eslint-plugin-vue": "^8.0.0",
|
||||
"style-loader": "1.3.0",
|
||||
"stylelint": "9.3.0",
|
||||
"terser-webpack-plugin": "^5.3.10",
|
||||
"thread-loader": "^4.0.2",
|
||||
"typescript": "^3.7.0",
|
||||
"typescript": "^4.9.5",
|
||||
"unplugin-auto-import": "^0.17.5",
|
||||
"unplugin-vue-components": "^0.26.0",
|
||||
"vue-loader": "^17.0.0",
|
||||
"webpack": "5.69.0",
|
||||
"webpack": "^5.78.0",
|
||||
"webpack-bundle-analyzer": "^4.10.1"
|
||||
},
|
||||
"overrides": {
|
||||
"@swc/core": "1.3.96"
|
||||
},
|
||||
"resolutions": {
|
||||
"@swc/core": "1.3.42"
|
||||
"@swc/core": "1.3.96"
|
||||
}
|
||||
}
|
||||
|
||||
104
types/auto-imports.d.ts
vendored
104
types/auto-imports.d.ts
vendored
@@ -58,6 +58,7 @@ declare global {
|
||||
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
|
||||
const onUnmounted: typeof import('vue')['onUnmounted']
|
||||
const onUpdated: typeof import('vue')['onUpdated']
|
||||
const onWatcherCleanup: typeof import('vue')['onWatcherCleanup']
|
||||
const provide: typeof import('vue')['provide']
|
||||
const reactive: typeof import('vue')['reactive']
|
||||
const readonly: typeof import('vue')['readonly']
|
||||
@@ -87,8 +88,11 @@ declare global {
|
||||
const useAttrs: typeof import('vue')['useAttrs']
|
||||
const useCssModule: typeof import('vue')['useCssModule']
|
||||
const useCssVars: typeof import('vue')['useCssVars']
|
||||
const useId: typeof import('vue')['useId']
|
||||
const useModel: typeof import('vue')['useModel']
|
||||
const useRootUserStore: typeof import('../src/store/index')['useRootUserStore']
|
||||
const useSlots: typeof import('vue')['useSlots']
|
||||
const useTemplateRef: typeof import('vue')['useTemplateRef']
|
||||
const validate: typeof import('../src/utils/validate')['default']
|
||||
const watch: typeof import('vue')['watch']
|
||||
const watchEffect: typeof import('vue')['watchEffect']
|
||||
@@ -98,8 +102,11 @@ declare global {
|
||||
// for type re-export
|
||||
declare global {
|
||||
// @ts-ignore
|
||||
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
|
||||
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
|
||||
import('vue')
|
||||
// @ts-ignore
|
||||
export type { ResponseAdapter, ParamsBuilder, PathBuilder } from '../src/utils/api-helper'
|
||||
import('../src/utils/api-helper')
|
||||
}
|
||||
// for vue template auto import
|
||||
import { UnwrapRef } from 'vue'
|
||||
@@ -157,6 +164,7 @@ declare module 'vue' {
|
||||
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
|
||||
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
|
||||
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
|
||||
readonly onWatcherCleanup: UnwrapRef<typeof import('vue')['onWatcherCleanup']>
|
||||
readonly provide: UnwrapRef<typeof import('vue')['provide']>
|
||||
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
|
||||
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
|
||||
@@ -185,99 +193,11 @@ declare module 'vue' {
|
||||
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
|
||||
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
|
||||
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
|
||||
readonly useId: UnwrapRef<typeof import('vue')['useId']>
|
||||
readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
|
||||
readonly useRootUserStore: UnwrapRef<typeof import('../src/store/index')['useRootUserStore']>
|
||||
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
|
||||
readonly validate: UnwrapRef<typeof import('../src/utils/validate')['default']>
|
||||
readonly watch: UnwrapRef<typeof import('vue')['watch']>
|
||||
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
|
||||
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
|
||||
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
|
||||
}
|
||||
}
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {}
|
||||
interface ComponentCustomProperties {
|
||||
readonly BASE_URL: UnwrapRef<typeof import('../src/utils/request')['BASE_URL']>
|
||||
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
|
||||
readonly ParamsBuilder: UnwrapRef<typeof import('../src/utils/api-helper')['ParamsBuilder']>
|
||||
readonly PathBuilder: UnwrapRef<typeof import('../src/utils/api-helper')['PathBuilder']>
|
||||
readonly ResponseAdapter: UnwrapRef<typeof import('../src/utils/api-helper')['ResponseAdapter']>
|
||||
readonly alarmJudgeCode: UnwrapRef<typeof import('../src/utils/tools')['alarmJudgeCode']>
|
||||
readonly apiHelper: UnwrapRef<typeof import('../src/utils/api-helper')['default']>
|
||||
readonly buildUrl: UnwrapRef<typeof import('../src/utils/api-helper')['buildUrl']>
|
||||
readonly computed: UnwrapRef<typeof import('vue')['computed']>
|
||||
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
|
||||
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
|
||||
readonly daysBeforeToday: UnwrapRef<typeof import('../src/utils/tools')['daysBeforeToday']>
|
||||
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
|
||||
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
|
||||
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
|
||||
readonly formatDate: UnwrapRef<typeof import('../src/utils/tools')['formatDate']>
|
||||
readonly formatDateHms: UnwrapRef<typeof import('../src/utils/tools')['formatDateHms']>
|
||||
readonly formatDateMin: UnwrapRef<typeof import('../src/utils/tools')['formatDateMin']>
|
||||
readonly formatDateMin_: UnwrapRef<typeof import('../src/utils/tools')['formatDateMin_']>
|
||||
readonly formatDateString: UnwrapRef<typeof import('../src/utils/tools')['formatDateString']>
|
||||
readonly formatDate_: UnwrapRef<typeof import('../src/utils/tools')['formatDate_']>
|
||||
readonly generateTimeSlotsEndingToday: UnwrapRef<typeof import('../src/utils/tools')['generateTimeSlotsEndingToday']>
|
||||
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
|
||||
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
|
||||
readonly getNowTime: UnwrapRef<typeof import('../src/utils/tools')['getNowTime']>
|
||||
readonly getToken: UnwrapRef<typeof import('../src/utils/auth')['getToken']>
|
||||
readonly getUserId: UnwrapRef<typeof import('../src/utils/auth')['getUserId']>
|
||||
readonly getUsername: UnwrapRef<typeof import('../src/utils/auth')['getUsername']>
|
||||
readonly h: UnwrapRef<typeof import('vue')['h']>
|
||||
readonly imgUrl: UnwrapRef<typeof import('../src/utils/imgUrl')['imgUrl']>
|
||||
readonly inject: UnwrapRef<typeof import('vue')['inject']>
|
||||
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
|
||||
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
|
||||
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
|
||||
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
|
||||
readonly isRelogin: UnwrapRef<typeof import('../src/utils/request')['isRelogin']>
|
||||
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
|
||||
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
|
||||
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
|
||||
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
|
||||
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
|
||||
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
|
||||
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
|
||||
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
|
||||
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
|
||||
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
|
||||
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
|
||||
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
|
||||
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
|
||||
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
|
||||
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
|
||||
readonly provide: UnwrapRef<typeof import('vue')['provide']>
|
||||
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
|
||||
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
|
||||
readonly ref: UnwrapRef<typeof import('vue')['ref']>
|
||||
readonly removeToken: UnwrapRef<typeof import('../src/utils/auth')['removeToken']>
|
||||
readonly removeUserId: UnwrapRef<typeof import('../src/utils/auth')['removeUserId']>
|
||||
readonly removeUsername: UnwrapRef<typeof import('../src/utils/auth')['removeUsername']>
|
||||
readonly request: UnwrapRef<typeof import('../src/utils/request')['default']>
|
||||
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
|
||||
readonly setToken: UnwrapRef<typeof import('../src/utils/auth')['setToken']>
|
||||
readonly setUserId: UnwrapRef<typeof import('../src/utils/auth')['setUserId']>
|
||||
readonly setUsername: UnwrapRef<typeof import('../src/utils/auth')['setUsername']>
|
||||
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
|
||||
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
|
||||
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
|
||||
readonly sortByField: UnwrapRef<typeof import('../src/utils/tools')['sortByField']>
|
||||
readonly timeX: UnwrapRef<typeof import('../src/utils/tools')['timeX']>
|
||||
readonly timestampToTime: UnwrapRef<typeof import('../src/utils/tools')['timestampToTime']>
|
||||
readonly toDecimal: UnwrapRef<typeof import('../src/utils/tools')['toDecimal']>
|
||||
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
|
||||
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
|
||||
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
|
||||
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
|
||||
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
|
||||
readonly unref: UnwrapRef<typeof import('vue')['unref']>
|
||||
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
|
||||
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
|
||||
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
|
||||
readonly useRootUserStore: UnwrapRef<typeof import('../src/store/index')['useRootUserStore']>
|
||||
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
|
||||
readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']>
|
||||
readonly validate: UnwrapRef<typeof import('../src/utils/validate')['default']>
|
||||
readonly watch: UnwrapRef<typeof import('vue')['watch']>
|
||||
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
|
||||
|
||||
Reference in New Issue
Block a user