From 3c226cfd41a3ffd4e445a85b10e29513aca02b25 Mon Sep 17 00:00:00 2001 From: nuintun Date: Wed, 27 Mar 2024 20:14:37 +0800 Subject: [PATCH] feat: Bump deps and update code --- pnpm-lock.yaml | 8 ++++---- tools/bin/webpack.config.base.js | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 39d3279f..d288f5a9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2525,7 +2525,7 @@ packages: he: 1.2.0 param-case: 3.0.4 relateurl: 0.2.7 - terser: 5.29.2 + terser: 5.30.0 dev: true /html-webpack-plugin@5.6.0(webpack@5.91.0): @@ -4757,12 +4757,12 @@ packages: jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 - terser: 5.29.2 + terser: 5.30.0 webpack: 5.91.0(@swc/core@1.4.11) dev: true - /terser@5.29.2: - resolution: {integrity: sha512-ZiGkhUBIM+7LwkNjXYJq8svgkd+QK3UUr0wJqY4MieaezBSAIPgbSPZyIx0idM6XWK5CMzSWa8MJIzmRcB8Caw==} + /terser@5.30.0: + resolution: {integrity: sha512-Y/SblUl5kEyEFzhMAQdsxVHh+utAxd4IuRNJzKywY/4uzSogh3G219jqbDDxYu4MXO9CzY3tSEqmZvW6AoEDJw==} engines: {node: '>=10'} hasBin: true dependencies: diff --git a/tools/bin/webpack.config.base.js b/tools/bin/webpack.config.base.js index b85bec3e..91bc6c50 100644 --- a/tools/bin/webpack.config.base.js +++ b/tools/bin/webpack.config.base.js @@ -134,6 +134,7 @@ export default async mode => { splitChunks: { chunks: 'all' }, + runtimeChunk: 'single', removeEmptyChunks: true, mergeDuplicateChunks: true, removeAvailableModules: true