mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
Use vite-plugin-compression2 instead of vite-plugin-compression (#64360)
This commit is contained in:
Generated
+14
-13
@@ -294,9 +294,9 @@ importers:
|
||||
typescript-eslint:
|
||||
specifier: ^8.56.1
|
||||
version: 8.56.1([email protected]([email protected]))([email protected])
|
||||
vite-plugin-compression:
|
||||
specifier: ^0.5.1
|
||||
version: 0.5.1([email protected](@types/[email protected])([email protected])([email protected]))
|
||||
vite-plugin-compression2:
|
||||
specifier: ^2.5.0
|
||||
version: 2.5.0([email protected])
|
||||
vite-plugin-wasm:
|
||||
specifier: ^3.5.0
|
||||
version: 3.5.0([email protected](@types/[email protected])([email protected])([email protected]))
|
||||
@@ -6417,6 +6417,9 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-LZA0oaPOc2fVo82Txf3gw+AkEd38szODlptMYejQUhndHMLQ9M059uXR+AfS7DNo0NpINvSqDsvyaCrBVkptWg==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-+qfUHz700DWnRutdUsxRRVZ38G1Qr27OetwaMYTdg8hcPxf46U0S1Zf76dQMWRBmusOt2ZCK5kbIaiLkoGO7WQ==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==}
|
||||
|
||||
@@ -6698,10 +6701,8 @@ packages:
|
||||
resolution: {integrity: sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==}
|
||||
engines: {node: '>=0.6.0'}
|
||||
|
||||
vite-plugin-compression@0.5.1:
|
||||
resolution: {integrity: sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg==}
|
||||
peerDependencies:
|
||||
vite: '>=2.0.0'
|
||||
vite-plugin-compression2@2.5.0:
|
||||
resolution: {integrity: sha512-bHxtBibPxxSn5eZSe0IAzvYucP/hg8Bz8ppjbH7lndU5kIHT+92qTkB4z9xWYfnyV0YHuir1SjOuyO0fzU4Vgg==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-X5VWgCnqiQEGb+omhlBVsvTfxikKtoOgAzQ95+BZ8gQ+VfMHIjSHr0wyvXFQCa0eKQ0fKyaL0kWcEnYqBac4lQ==}
|
||||
@@ -13858,6 +13859,8 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- bare-buffer
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
b4a: 1.6.7
|
||||
@@ -14153,14 +14156,12 @@ snapshots:
|
||||
extsprintf: 1.4.1
|
||||
optional: true
|
||||
|
||||
vite-plugin-compression@0.5.1([email protected](@types/[email protected])([email protected])([email protected])):
|
||||
vite-plugin-compression[email protected]([email protected]):
|
||||
dependencies:
|
||||
chalk: 4.1.2
|
||||
debug: 4.4.3
|
||||
fs-extra: 10.1.0
|
||||
vite: 7.3.1(@types/[email protected])([email protected])([email protected])
|
||||
'@rollup/pluginutils': 5.3.0([email protected])
|
||||
tar-mini: 0.2.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
- rollup
|
||||
|
||||
[email protected]([email protected](@types/[email protected])([email protected])([email protected])):
|
||||
dependencies:
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"jsdom": "^28.1.0",
|
||||
"rollup-plugin-visualizer": "^6.0.5",
|
||||
"typescript-eslint": "^8.56.1",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-plugin-compression2": "^2.5.0",
|
||||
"vite-plugin-wasm": "^3.5.0",
|
||||
"vite-tsconfig-paths": "^6.1.1"
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import { resolve } from 'path';
|
||||
|
||||
import { visualizer } from 'rollup-plugin-visualizer';
|
||||
import { defineConfig, type UserConfig } from 'vite';
|
||||
import compression from 'vite-plugin-compression';
|
||||
import { compression } from 'vite-plugin-compression2';
|
||||
import wasm from 'vite-plugin-wasm';
|
||||
|
||||
import { generateAppHashFile } from './apphash';
|
||||
@@ -119,11 +119,11 @@ export function createViteConfig(
|
||||
if (!process.env.VITE_DISABLE_COMPRESSION) {
|
||||
config.plugins.push(
|
||||
compression({
|
||||
algorithm: 'brotliCompress',
|
||||
deleteOriginFile: true,
|
||||
filter: /\.(js|svg|wasm)$/,
|
||||
algorithms: ['brotliCompress'],
|
||||
deleteOriginalAssets: true,
|
||||
include: /\.(js|svg|wasm)$/,
|
||||
threshold: 1024 * 10, // 10KB
|
||||
verbose: false,
|
||||
logLevel: 'silent',
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user