2
0

feat: add terser dependency to user portal

This commit is contained in:
zhangsz
2025-01-02 10:11:10 +08:00
parent 4fbb71c681
commit 9ba3922f6d
2 changed files with 66 additions and 23 deletions

View File

@@ -54,6 +54,7 @@
"lint-staged": "15.2.5", "lint-staged": "15.2.5",
"sass": "1.77.4", "sass": "1.77.4",
"simple-git-hooks": "2.11.1", "simple-git-hooks": "2.11.1",
"terser": "^5.37.0",
"tsx": "4.14.1", "tsx": "4.14.1",
"typescript": "5.4.5", "typescript": "5.4.5",
"unplugin-auto-import": "^0.17.6", "unplugin-auto-import": "^0.17.6",

88
pnpm-lock.yaml generated
View File

@@ -107,13 +107,13 @@ importers:
version: 0.60.4 version: 0.60.4
'@unocss/vite': '@unocss/vite':
specifier: 0.60.4 specifier: 0.60.4
version: 0.60.4(rollup@4.18.0)(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)) version: 0.60.4(rollup@4.18.0)(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0))
'@vitejs/plugin-vue': '@vitejs/plugin-vue':
specifier: 5.0.5 specifier: 5.0.5
version: 5.0.5(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4))(vue@3.4.27(typescript@5.4.5)) version: 5.0.5(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0))(vue@3.4.27(typescript@5.4.5))
'@vitejs/plugin-vue-jsx': '@vitejs/plugin-vue-jsx':
specifier: 4.0.0 specifier: 4.0.0
version: 4.0.0(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4))(vue@3.4.27(typescript@5.4.5)) version: 4.0.0(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0))(vue@3.4.27(typescript@5.4.5))
eslint: eslint:
specifier: 9.4.0 specifier: 9.4.0
version: 9.4.0 version: 9.4.0
@@ -129,6 +129,9 @@ importers:
simple-git-hooks: simple-git-hooks:
specifier: 2.11.1 specifier: 2.11.1
version: 2.11.1 version: 2.11.1
terser:
specifier: ^5.37.0
version: 5.37.0
tsx: tsx:
specifier: 4.14.1 specifier: 4.14.1
version: 4.14.1 version: 4.14.1
@@ -146,16 +149,16 @@ importers:
version: 0.27.0(@babel/parser@7.24.7)(rollup@4.18.0)(vue@3.4.27(typescript@5.4.5)) version: 0.27.0(@babel/parser@7.24.7)(rollup@4.18.0)(vue@3.4.27(typescript@5.4.5))
vite: vite:
specifier: 5.2.13 specifier: 5.2.13
version: 5.2.13(@types/node@20.14.2)(sass@1.77.4) version: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
vite-plugin-progress: vite-plugin-progress:
specifier: 0.0.7 specifier: 0.0.7
version: 0.0.7(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)) version: 0.0.7(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0))
vite-plugin-svg-icons: vite-plugin-svg-icons:
specifier: 2.0.1 specifier: 2.0.1
version: 2.0.1(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)) version: 2.0.1(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0))
vitest: vitest:
specifier: ^1.6.0 specifier: ^1.6.0
version: 1.6.0(@types/node@20.14.2)(sass@1.77.4) version: 1.6.0(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
vue-eslint-parser: vue-eslint-parser:
specifier: 9.4.3 specifier: 9.4.3
version: 9.4.3(eslint@9.4.0) version: 9.4.3(eslint@9.4.0)
@@ -702,6 +705,9 @@ packages:
resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}
engines: {node: '>=6.0.0'} engines: {node: '>=6.0.0'}
'@jridgewell/source-map@0.3.6':
resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==}
'@jridgewell/sourcemap-codec@1.4.15': '@jridgewell/sourcemap-codec@1.4.15':
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
@@ -1426,6 +1432,9 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true hasBin: true
buffer-from@1.1.2:
resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
builtin-modules@3.3.0: builtin-modules@3.3.0:
resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==}
engines: {node: '>=6'} engines: {node: '>=6'}
@@ -1554,6 +1563,9 @@ packages:
resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
engines: {node: '>=18'} engines: {node: '>=18'}
commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
commander@7.2.0: commander@7.2.0:
resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
@@ -3505,6 +3517,9 @@ packages:
resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==} resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==}
deprecated: See https://github.com/lydell/source-map-resolve#deprecated deprecated: See https://github.com/lydell/source-map-resolve#deprecated
source-map-support@0.5.21:
resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
source-map-url@0.4.1: source-map-url@0.4.1:
resolution: {integrity: sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==} resolution: {integrity: sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==}
deprecated: See https://github.com/lydell/source-map-url#deprecated deprecated: See https://github.com/lydell/source-map-url#deprecated
@@ -3662,6 +3677,11 @@ packages:
resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
engines: {node: '>=6'} engines: {node: '>=6'}
terser@5.37.0:
resolution: {integrity: sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA==}
engines: {node: '>=10'}
hasBin: true
text-table@0.2.0: text-table@0.2.0:
resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}
@@ -4582,6 +4602,11 @@ snapshots:
'@jridgewell/set-array@1.2.1': {} '@jridgewell/set-array@1.2.1': {}
'@jridgewell/source-map@0.3.6':
dependencies:
'@jridgewell/gen-mapping': 0.3.5
'@jridgewell/trace-mapping': 0.3.25
'@jridgewell/sourcemap-codec@1.4.15': {} '@jridgewell/sourcemap-codec@1.4.15': {}
'@jridgewell/trace-mapping@0.3.25': '@jridgewell/trace-mapping@0.3.25':
@@ -5033,7 +5058,7 @@ snapshots:
dependencies: dependencies:
'@unocss/core': 0.60.4 '@unocss/core': 0.60.4
'@unocss/vite@0.60.4(rollup@4.18.0)(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4))': '@unocss/vite@0.60.4(rollup@4.18.0)(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0))':
dependencies: dependencies:
'@ampproject/remapping': 2.3.0 '@ampproject/remapping': 2.3.0
'@rollup/pluginutils': 5.1.0(rollup@4.18.0) '@rollup/pluginutils': 5.1.0(rollup@4.18.0)
@@ -5045,23 +5070,23 @@ snapshots:
chokidar: 3.6.0 chokidar: 3.6.0
fast-glob: 3.3.2 fast-glob: 3.3.2
magic-string: 0.30.10 magic-string: 0.30.10
vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
transitivePeerDependencies: transitivePeerDependencies:
- rollup - rollup
'@vitejs/plugin-vue-jsx@4.0.0(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4))(vue@3.4.27(typescript@5.4.5))': '@vitejs/plugin-vue-jsx@4.0.0(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0))(vue@3.4.27(typescript@5.4.5))':
dependencies: dependencies:
'@babel/core': 7.24.7 '@babel/core': 7.24.7
'@babel/plugin-transform-typescript': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-typescript': 7.24.7(@babel/core@7.24.7)
'@vue/babel-plugin-jsx': 1.2.2(@babel/core@7.24.7) '@vue/babel-plugin-jsx': 1.2.2(@babel/core@7.24.7)
vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
vue: 3.4.27(typescript@5.4.5) vue: 3.4.27(typescript@5.4.5)
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@vitejs/plugin-vue@5.0.5(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4))(vue@3.4.27(typescript@5.4.5))': '@vitejs/plugin-vue@5.0.5(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0))(vue@3.4.27(typescript@5.4.5))':
dependencies: dependencies:
vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
vue: 3.4.27(typescript@5.4.5) vue: 3.4.27(typescript@5.4.5)
'@vitest/expect@1.6.0': '@vitest/expect@1.6.0':
@@ -5440,6 +5465,8 @@ snapshots:
node-releases: 2.0.14 node-releases: 2.0.14
update-browserslist-db: 1.0.16(browserslist@4.23.1) update-browserslist-db: 1.0.16(browserslist@4.23.1)
buffer-from@1.1.2: {}
builtin-modules@3.3.0: {} builtin-modules@3.3.0: {}
builtins@5.1.0: builtins@5.1.0:
@@ -5590,6 +5617,8 @@ snapshots:
commander@12.1.0: {} commander@12.1.0: {}
commander@2.20.3: {}
commander@7.2.0: {} commander@7.2.0: {}
comment-parser@1.4.1: {} comment-parser@1.4.1: {}
@@ -7815,6 +7844,11 @@ snapshots:
source-map-url: 0.4.1 source-map-url: 0.4.1
urix: 0.1.0 urix: 0.1.0
source-map-support@0.5.21:
dependencies:
buffer-from: 1.1.2
source-map: 0.6.1
source-map-url@0.4.1: {} source-map-url@0.4.1: {}
source-map@0.5.7: {} source-map@0.5.7: {}
@@ -7983,6 +8017,13 @@ snapshots:
tapable@2.2.1: {} tapable@2.2.1: {}
terser@5.37.0:
dependencies:
'@jridgewell/source-map': 0.3.6
acorn: 8.11.3
commander: 2.20.3
source-map-support: 0.5.21
text-table@0.2.0: {} text-table@0.2.0: {}
throttle-debounce@5.0.0: {} throttle-debounce@5.0.0: {}
@@ -8252,13 +8293,13 @@ snapshots:
vary@1.1.2: {} vary@1.1.2: {}
vite-node@1.6.0(@types/node@20.14.2)(sass@1.77.4): vite-node@1.6.0(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0):
dependencies: dependencies:
cac: 6.7.14 cac: 6.7.14
debug: 4.3.5 debug: 4.3.5
pathe: 1.1.2 pathe: 1.1.2
picocolors: 1.0.1 picocolors: 1.0.1
vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
transitivePeerDependencies: transitivePeerDependencies:
- '@types/node' - '@types/node'
- less - less
@@ -8269,14 +8310,14 @@ snapshots:
- supports-color - supports-color
- terser - terser
vite-plugin-progress@0.0.7(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)): vite-plugin-progress@0.0.7(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)):
dependencies: dependencies:
picocolors: 1.0.1 picocolors: 1.0.1
progress: 2.0.3 progress: 2.0.3
rd: 2.0.1 rd: 2.0.1
vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
vite-plugin-svg-icons@2.0.1(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)): vite-plugin-svg-icons@2.0.1(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)):
dependencies: dependencies:
'@types/svgo': 2.6.4 '@types/svgo': 2.6.4
cors: 2.8.5 cors: 2.8.5
@@ -8286,11 +8327,11 @@ snapshots:
pathe: 0.2.0 pathe: 0.2.0
svg-baker: 1.7.0 svg-baker: 1.7.0
svgo: 2.8.0 svgo: 2.8.0
vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
vite@5.2.13(@types/node@20.14.2)(sass@1.77.4): vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0):
dependencies: dependencies:
esbuild: 0.20.2 esbuild: 0.20.2
postcss: 8.4.38 postcss: 8.4.38
@@ -8299,8 +8340,9 @@ snapshots:
'@types/node': 20.14.2 '@types/node': 20.14.2
fsevents: 2.3.3 fsevents: 2.3.3
sass: 1.77.4 sass: 1.77.4
terser: 5.37.0
vitest@1.6.0(@types/node@20.14.2)(sass@1.77.4): vitest@1.6.0(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0):
dependencies: dependencies:
'@vitest/expect': 1.6.0 '@vitest/expect': 1.6.0
'@vitest/runner': 1.6.0 '@vitest/runner': 1.6.0
@@ -8319,8 +8361,8 @@ snapshots:
strip-literal: 2.1.0 strip-literal: 2.1.0
tinybench: 2.8.0 tinybench: 2.8.0
tinypool: 0.8.4 tinypool: 0.8.4
vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4) vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
vite-node: 1.6.0(@types/node@20.14.2)(sass@1.77.4) vite-node: 1.6.0(@types/node@20.14.2)(sass@1.77.4)(terser@5.37.0)
why-is-node-running: 2.2.2 why-is-node-running: 2.2.2
optionalDependencies: optionalDependencies:
'@types/node': 20.14.2 '@types/node': 20.14.2