mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
package updates
This commit is contained in:
@@ -47,14 +47,14 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.28.5",
|
"@babel/core": "^7.28.5",
|
||||||
"@eslint/js": "^9.38.0",
|
"@eslint/js": "^9.39.0",
|
||||||
"@preact/preset-vite": "^2.10.2",
|
"@preact/preset-vite": "^2.10.2",
|
||||||
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
||||||
"@types/node": "^24.9.2",
|
"@types/node": "^24.9.2",
|
||||||
"@types/react": "^19.2.2",
|
"@types/react": "^19.2.2",
|
||||||
"@types/react-dom": "^19.2.2",
|
"@types/react-dom": "^19.2.2",
|
||||||
"concurrently": "^9.2.1",
|
"concurrently": "^9.2.1",
|
||||||
"eslint": "^9.38.0",
|
"eslint": "^9.39.0",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"rollup-plugin-visualizer": "^6.0.5",
|
"rollup-plugin-visualizer": "^6.0.5",
|
||||||
|
|||||||
90
interface/pnpm-lock.yaml
generated
90
interface/pnpm-lock.yaml
generated
@@ -79,8 +79,8 @@ importers:
|
|||||||
specifier: ^7.28.5
|
specifier: ^7.28.5
|
||||||
version: 7.28.5
|
version: 7.28.5
|
||||||
'@eslint/js':
|
'@eslint/js':
|
||||||
specifier: ^9.38.0
|
specifier: ^9.39.0
|
||||||
version: 9.38.0
|
version: 9.39.0
|
||||||
'@preact/preset-vite':
|
'@preact/preset-vite':
|
||||||
specifier: ^2.10.2
|
specifier: ^2.10.2
|
||||||
version: 2.10.2(@babel/core@7.28.5)(preact@10.27.2)(vite@7.1.12(@types/node@24.9.2)(terser@5.44.0))
|
version: 2.10.2(@babel/core@7.28.5)(preact@10.27.2)(vite@7.1.12(@types/node@24.9.2)(terser@5.44.0))
|
||||||
@@ -100,11 +100,11 @@ importers:
|
|||||||
specifier: ^9.2.1
|
specifier: ^9.2.1
|
||||||
version: 9.2.1
|
version: 9.2.1
|
||||||
eslint:
|
eslint:
|
||||||
specifier: ^9.38.0
|
specifier: ^9.39.0
|
||||||
version: 9.38.0
|
version: 9.39.0
|
||||||
eslint-config-prettier:
|
eslint-config-prettier:
|
||||||
specifier: ^10.1.8
|
specifier: ^10.1.8
|
||||||
version: 10.1.8(eslint@9.38.0)
|
version: 10.1.8(eslint@9.39.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: ^3.6.2
|
specifier: ^3.6.2
|
||||||
version: 3.6.2
|
version: 3.6.2
|
||||||
@@ -116,7 +116,7 @@ importers:
|
|||||||
version: 5.44.0
|
version: 5.44.0
|
||||||
typescript-eslint:
|
typescript-eslint:
|
||||||
specifier: ^8.46.2
|
specifier: ^8.46.2
|
||||||
version: 8.46.2(eslint@9.38.0)(typescript@5.9.3)
|
version: 8.46.2(eslint@9.39.0)(typescript@5.9.3)
|
||||||
vite:
|
vite:
|
||||||
specifier: ^7.1.12
|
specifier: ^7.1.12
|
||||||
version: 7.1.12(@types/node@24.9.2)(terser@5.44.0)
|
version: 7.1.12(@types/node@24.9.2)(terser@5.44.0)
|
||||||
@@ -468,10 +468,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}
|
resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
|
||||||
'@eslint/core@0.16.0':
|
|
||||||
resolution: {integrity: sha512-nmC8/totwobIiFcGkDza3GIKfAw1+hLiYVrh3I1nIomQ8PEr5cxg34jnkmGawul/ep52wGRAcyeDCNtWKSOj4Q==}
|
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
|
||||||
|
|
||||||
'@eslint/core@0.17.0':
|
'@eslint/core@0.17.0':
|
||||||
resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}
|
resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
@@ -480,8 +476,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==}
|
resolution: {integrity: sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
|
||||||
'@eslint/js@9.38.0':
|
'@eslint/js@9.39.0':
|
||||||
resolution: {integrity: sha512-UZ1VpFvXf9J06YG9xQBdnzU+kthors6KjhMAl6f4gH4usHyh31rUf2DLGInT8RFYIReYXNSydgPY0V2LuWgl7A==}
|
resolution: {integrity: sha512-BIhe0sW91JGPiaF1mOuPy5v8NflqfjIcDNpC+LbW9f609WVRX1rArrhi6Z2ymvrAry9jw+5POTj4t2t62o8Bmw==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
|
||||||
'@eslint/object-schema@2.1.7':
|
'@eslint/object-schema@2.1.7':
|
||||||
@@ -1021,8 +1017,8 @@ packages:
|
|||||||
base64-js@1.5.1:
|
base64-js@1.5.1:
|
||||||
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
|
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
|
||||||
|
|
||||||
baseline-browser-mapping@2.8.22:
|
baseline-browser-mapping@2.8.23:
|
||||||
resolution: {integrity: sha512-/tk9kky/d8T8CTXIQYASLyhAxR5VwL3zct1oAoVTaOUHwrmsGnfbRwNdEq+vOl2BN8i3PcDdP0o4Q+jjKQoFbQ==}
|
resolution: {integrity: sha512-616V5YX4bepJFzNyOfce5Fa8fDJMfoxzOIzDCZwaGL8MKVpFrXqfNUoIpRn9YMI5pXf/VKgzjB4htFMsFKKdiQ==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
bin-build@3.0.0:
|
bin-build@3.0.0:
|
||||||
@@ -1522,8 +1518,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
|
resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
|
||||||
eslint@9.38.0:
|
eslint@9.39.0:
|
||||||
resolution: {integrity: sha512-t5aPOpmtJcZcz5UJyY2GbvpDlsK5E8JqRqoKtfiKE3cNh437KIqfJr3A3AKf5k64NPx6d0G3dno6XDY05PqPtw==}
|
resolution: {integrity: sha512-iy2GE3MHrYTL5lrCtMZ0X1KLEKKUjmK0kzwcnefhR66txcEmXZD2YWgR5GNdcEwkNx3a0siYkSvl0vIC+Svjmg==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -3388,9 +3384,9 @@ snapshots:
|
|||||||
'@esbuild/win32-x64@0.25.11':
|
'@esbuild/win32-x64@0.25.11':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@eslint-community/eslint-utils@4.9.0(eslint@9.38.0)':
|
'@eslint-community/eslint-utils@4.9.0(eslint@9.39.0)':
|
||||||
dependencies:
|
dependencies:
|
||||||
eslint: 9.38.0
|
eslint: 9.39.0
|
||||||
eslint-visitor-keys: 3.4.3
|
eslint-visitor-keys: 3.4.3
|
||||||
|
|
||||||
'@eslint-community/regexpp@4.12.2': {}
|
'@eslint-community/regexpp@4.12.2': {}
|
||||||
@@ -3407,10 +3403,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@eslint/core': 0.17.0
|
'@eslint/core': 0.17.0
|
||||||
|
|
||||||
'@eslint/core@0.16.0':
|
|
||||||
dependencies:
|
|
||||||
'@types/json-schema': 7.0.15
|
|
||||||
|
|
||||||
'@eslint/core@0.17.0':
|
'@eslint/core@0.17.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/json-schema': 7.0.15
|
'@types/json-schema': 7.0.15
|
||||||
@@ -3429,7 +3421,7 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@eslint/js@9.38.0': {}
|
'@eslint/js@9.39.0': {}
|
||||||
|
|
||||||
'@eslint/object-schema@2.1.7': {}
|
'@eslint/object-schema@2.1.7': {}
|
||||||
|
|
||||||
@@ -3796,15 +3788,15 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 24.9.2
|
'@types/node': 24.9.2
|
||||||
|
|
||||||
'@typescript-eslint/eslint-plugin@8.46.2(@typescript-eslint/parser@8.46.2(eslint@9.38.0)(typescript@5.9.3))(eslint@9.38.0)(typescript@5.9.3)':
|
'@typescript-eslint/eslint-plugin@8.46.2(@typescript-eslint/parser@8.46.2(eslint@9.39.0)(typescript@5.9.3))(eslint@9.39.0)(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/regexpp': 4.12.2
|
'@eslint-community/regexpp': 4.12.2
|
||||||
'@typescript-eslint/parser': 8.46.2(eslint@9.38.0)(typescript@5.9.3)
|
'@typescript-eslint/parser': 8.46.2(eslint@9.39.0)(typescript@5.9.3)
|
||||||
'@typescript-eslint/scope-manager': 8.46.2
|
'@typescript-eslint/scope-manager': 8.46.2
|
||||||
'@typescript-eslint/type-utils': 8.46.2(eslint@9.38.0)(typescript@5.9.3)
|
'@typescript-eslint/type-utils': 8.46.2(eslint@9.39.0)(typescript@5.9.3)
|
||||||
'@typescript-eslint/utils': 8.46.2(eslint@9.38.0)(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.46.2(eslint@9.39.0)(typescript@5.9.3)
|
||||||
'@typescript-eslint/visitor-keys': 8.46.2
|
'@typescript-eslint/visitor-keys': 8.46.2
|
||||||
eslint: 9.38.0
|
eslint: 9.39.0
|
||||||
graphemer: 1.4.0
|
graphemer: 1.4.0
|
||||||
ignore: 7.0.5
|
ignore: 7.0.5
|
||||||
natural-compare: 1.4.0
|
natural-compare: 1.4.0
|
||||||
@@ -3813,14 +3805,14 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@typescript-eslint/parser@8.46.2(eslint@9.38.0)(typescript@5.9.3)':
|
'@typescript-eslint/parser@8.46.2(eslint@9.39.0)(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/scope-manager': 8.46.2
|
'@typescript-eslint/scope-manager': 8.46.2
|
||||||
'@typescript-eslint/types': 8.46.2
|
'@typescript-eslint/types': 8.46.2
|
||||||
'@typescript-eslint/typescript-estree': 8.46.2(typescript@5.9.3)
|
'@typescript-eslint/typescript-estree': 8.46.2(typescript@5.9.3)
|
||||||
'@typescript-eslint/visitor-keys': 8.46.2
|
'@typescript-eslint/visitor-keys': 8.46.2
|
||||||
debug: 4.4.3
|
debug: 4.4.3
|
||||||
eslint: 9.38.0
|
eslint: 9.39.0
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -3843,13 +3835,13 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
|
|
||||||
'@typescript-eslint/type-utils@8.46.2(eslint@9.38.0)(typescript@5.9.3)':
|
'@typescript-eslint/type-utils@8.46.2(eslint@9.39.0)(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/types': 8.46.2
|
'@typescript-eslint/types': 8.46.2
|
||||||
'@typescript-eslint/typescript-estree': 8.46.2(typescript@5.9.3)
|
'@typescript-eslint/typescript-estree': 8.46.2(typescript@5.9.3)
|
||||||
'@typescript-eslint/utils': 8.46.2(eslint@9.38.0)(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.46.2(eslint@9.39.0)(typescript@5.9.3)
|
||||||
debug: 4.4.3
|
debug: 4.4.3
|
||||||
eslint: 9.38.0
|
eslint: 9.39.0
|
||||||
ts-api-utils: 2.1.0(typescript@5.9.3)
|
ts-api-utils: 2.1.0(typescript@5.9.3)
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@@ -3873,13 +3865,13 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@typescript-eslint/utils@8.46.2(eslint@9.38.0)(typescript@5.9.3)':
|
'@typescript-eslint/utils@8.46.2(eslint@9.39.0)(typescript@5.9.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/eslint-utils': 4.9.0(eslint@9.38.0)
|
'@eslint-community/eslint-utils': 4.9.0(eslint@9.39.0)
|
||||||
'@typescript-eslint/scope-manager': 8.46.2
|
'@typescript-eslint/scope-manager': 8.46.2
|
||||||
'@typescript-eslint/types': 8.46.2
|
'@typescript-eslint/types': 8.46.2
|
||||||
'@typescript-eslint/typescript-estree': 8.46.2(typescript@5.9.3)
|
'@typescript-eslint/typescript-estree': 8.46.2(typescript@5.9.3)
|
||||||
eslint: 9.38.0
|
eslint: 9.39.0
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -3951,7 +3943,7 @@ snapshots:
|
|||||||
|
|
||||||
base64-js@1.5.1: {}
|
base64-js@1.5.1: {}
|
||||||
|
|
||||||
baseline-browser-mapping@2.8.22: {}
|
baseline-browser-mapping@2.8.23: {}
|
||||||
|
|
||||||
bin-build@3.0.0:
|
bin-build@3.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -4008,7 +4000,7 @@ snapshots:
|
|||||||
|
|
||||||
browserslist@4.27.0:
|
browserslist@4.27.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
baseline-browser-mapping: 2.8.22
|
baseline-browser-mapping: 2.8.23
|
||||||
caniuse-lite: 1.0.30001752
|
caniuse-lite: 1.0.30001752
|
||||||
electron-to-chromium: 1.5.244
|
electron-to-chromium: 1.5.244
|
||||||
node-releases: 2.0.27
|
node-releases: 2.0.27
|
||||||
@@ -4498,9 +4490,9 @@ snapshots:
|
|||||||
|
|
||||||
escape-string-regexp@4.0.0: {}
|
escape-string-regexp@4.0.0: {}
|
||||||
|
|
||||||
eslint-config-prettier@10.1.8(eslint@9.38.0):
|
eslint-config-prettier@10.1.8(eslint@9.39.0):
|
||||||
dependencies:
|
dependencies:
|
||||||
eslint: 9.38.0
|
eslint: 9.39.0
|
||||||
|
|
||||||
eslint-scope@8.4.0:
|
eslint-scope@8.4.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -4511,15 +4503,15 @@ snapshots:
|
|||||||
|
|
||||||
eslint-visitor-keys@4.2.1: {}
|
eslint-visitor-keys@4.2.1: {}
|
||||||
|
|
||||||
eslint@9.38.0:
|
eslint@9.39.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/eslint-utils': 4.9.0(eslint@9.38.0)
|
'@eslint-community/eslint-utils': 4.9.0(eslint@9.39.0)
|
||||||
'@eslint-community/regexpp': 4.12.2
|
'@eslint-community/regexpp': 4.12.2
|
||||||
'@eslint/config-array': 0.21.1
|
'@eslint/config-array': 0.21.1
|
||||||
'@eslint/config-helpers': 0.4.2
|
'@eslint/config-helpers': 0.4.2
|
||||||
'@eslint/core': 0.16.0
|
'@eslint/core': 0.17.0
|
||||||
'@eslint/eslintrc': 3.3.1
|
'@eslint/eslintrc': 3.3.1
|
||||||
'@eslint/js': 9.38.0
|
'@eslint/js': 9.39.0
|
||||||
'@eslint/plugin-kit': 0.4.1
|
'@eslint/plugin-kit': 0.4.1
|
||||||
'@humanfs/node': 0.16.7
|
'@humanfs/node': 0.16.7
|
||||||
'@humanwhocodes/module-importer': 1.0.1
|
'@humanwhocodes/module-importer': 1.0.1
|
||||||
@@ -5901,13 +5893,13 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
|
|
||||||
typescript-eslint@8.46.2(eslint@9.38.0)(typescript@5.9.3):
|
typescript-eslint@8.46.2(eslint@9.39.0)(typescript@5.9.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/eslint-plugin': 8.46.2(@typescript-eslint/parser@8.46.2(eslint@9.38.0)(typescript@5.9.3))(eslint@9.38.0)(typescript@5.9.3)
|
'@typescript-eslint/eslint-plugin': 8.46.2(@typescript-eslint/parser@8.46.2(eslint@9.39.0)(typescript@5.9.3))(eslint@9.39.0)(typescript@5.9.3)
|
||||||
'@typescript-eslint/parser': 8.46.2(eslint@9.38.0)(typescript@5.9.3)
|
'@typescript-eslint/parser': 8.46.2(eslint@9.39.0)(typescript@5.9.3)
|
||||||
'@typescript-eslint/typescript-estree': 8.46.2(typescript@5.9.3)
|
'@typescript-eslint/typescript-estree': 8.46.2(typescript@5.9.3)
|
||||||
'@typescript-eslint/utils': 8.46.2(eslint@9.38.0)(typescript@5.9.3)
|
'@typescript-eslint/utils': 8.46.2(eslint@9.39.0)(typescript@5.9.3)
|
||||||
eslint: 9.38.0
|
eslint: 9.39.0
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import preact from '@preact/preset-vite';
|
|||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { visualizer } from 'rollup-plugin-visualizer';
|
import { visualizer } from 'rollup-plugin-visualizer';
|
||||||
import { defineConfig, Plugin } from 'vite';
|
import { Plugin, defineConfig } from 'vite';
|
||||||
import viteImagemin from 'vite-plugin-imagemin';
|
import viteImagemin from 'vite-plugin-imagemin';
|
||||||
import viteTsconfigPaths from 'vite-tsconfig-paths';
|
import viteTsconfigPaths from 'vite-tsconfig-paths';
|
||||||
import zlib from 'zlib';
|
import zlib from 'zlib';
|
||||||
@@ -80,7 +80,9 @@ const bundleSizeReporter = (): Plugin => {
|
|||||||
|
|
||||||
console.log(REPEAT_CHAR.repeat(REPEAT_COUNT));
|
console.log(REPEAT_CHAR.repeat(REPEAT_COUNT));
|
||||||
console.log(`📊 Total Bundle Size: ${(totalSize / KB_DIVISOR).toFixed(2)} KB`);
|
console.log(`📊 Total Bundle Size: ${(totalSize / KB_DIVISOR).toFixed(2)} KB`);
|
||||||
console.log(`🗜️ Total Gzipped Size: ${(totalGzipSize / KB_DIVISOR).toFixed(2)} KB`);
|
console.log(
|
||||||
|
`🗜️ Total Gzipped Size: ${(totalGzipSize / KB_DIVISOR).toFixed(2)} KB`
|
||||||
|
);
|
||||||
console.log(`📈 Compression Ratio: ${compressionRatio.toFixed(1)}%`);
|
console.log(`📈 Compression Ratio: ${compressionRatio.toFixed(1)}%`);
|
||||||
console.log(REPEAT_CHAR.repeat(REPEAT_COUNT));
|
console.log(REPEAT_CHAR.repeat(REPEAT_COUNT));
|
||||||
}
|
}
|
||||||
@@ -95,11 +97,11 @@ const createPreactPlugin = (devToolsEnabled: boolean) =>
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Common base plugins
|
// Common base plugins
|
||||||
const createBasePlugins = (devToolsEnabled: boolean, includeBundleReporter = true) => {
|
const createBasePlugins = (
|
||||||
const plugins = [
|
devToolsEnabled: boolean,
|
||||||
createPreactPlugin(devToolsEnabled),
|
includeBundleReporter = true
|
||||||
viteTsconfigPaths()
|
) => {
|
||||||
];
|
const plugins = [createPreactPlugin(devToolsEnabled), viteTsconfigPaths()];
|
||||||
if (includeBundleReporter) {
|
if (includeBundleReporter) {
|
||||||
plugins.push(bundleSizeReporter());
|
plugins.push(bundleSizeReporter());
|
||||||
}
|
}
|
||||||
@@ -214,10 +216,7 @@ export default defineConfig(
|
|||||||
if (command === 'serve') {
|
if (command === 'serve') {
|
||||||
console.log(`Preparing for standalone build with server, mode=${mode}`);
|
console.log(`Preparing for standalone build with server, mode=${mode}`);
|
||||||
return {
|
return {
|
||||||
plugins: [
|
plugins: [...createBasePlugins(true, true), mockServer()],
|
||||||
...createBasePlugins(true, true),
|
|
||||||
mockServer()
|
|
||||||
],
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: RESOLVE_ALIASES
|
alias: RESOLVE_ALIASES
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1434,3 +1434,4 @@ beddouble
|
|||||||
teddybear
|
teddybear
|
||||||
washingmachine
|
washingmachine
|
||||||
switchprogram
|
switchprogram
|
||||||
|
brotlin
|
||||||
Reference in New Issue
Block a user