From 5dc9a012380742dc238be6c21b3fd6fc5410d5bb Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 26 Sep 2024 11:38:45 +0800 Subject: [PATCH] perf: reduce require calls for compiled packages (#3568) --- packages/core/prebundle.config.mjs | 3 --- packages/core/tsconfig.json | 3 --- 2 files changed, 6 deletions(-) diff --git a/packages/core/prebundle.config.mjs b/packages/core/prebundle.config.mjs index 2f705f7496..947783415c 100644 --- a/packages/core/prebundle.config.mjs +++ b/packages/core/prebundle.config.mjs @@ -35,9 +35,6 @@ export default { }, dependencies: [ 'open', - 'commander', - 'dotenv', - 'dotenv-expand', 'ws', 'on-finished', 'connect', diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index d50427a7e7..52cafb4d4b 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -14,17 +14,14 @@ "sirv": ["./compiled/sirv"], "jiti": ["./compiled/jiti"], "rslog": ["./compiled/rslog"], - "dotenv": ["./compiled/dotenv"], "mrmime": ["./compiled/mrmime"], "semver": ["./compiled/semver"], "connect": ["./compiled/connect"], "chokidar": ["./compiled/chokidar"], - "commander": ["./compiled/commander"], "picocolors": ["./compiled/picocolors"], "on-finished": ["./compiled/on-finished"], "browserslist": ["./compiled/browserslist"], "rspack-chain": ["./compiled/rspack-chain"], - "dotenv-expand": ["./compiled/dotenv-expand"], "webpack-merge": ["./compiled/webpack-merge"], "html-rspack-plugin": ["./compiled/html-rspack-plugin"], "http-proxy-middleware": ["./compiled/http-proxy-middleware"],