From dd9d4c13202c6b639d43cad18e43d3b5d1a62fb2 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Fri, 28 Jul 2023 20:21:01 +0800 Subject: [PATCH] chore(reporter): remove unnecessary map (#13972) --- packages/vite/src/node/plugins/reporter.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/vite/src/node/plugins/reporter.ts b/packages/vite/src/node/plugins/reporter.ts index d2d4d0705a9037..e03bb56183c6e8 100644 --- a/packages/vite/src/node/plugins/reporter.ts +++ b/packages/vite/src/node/plugins/reporter.ts @@ -137,13 +137,11 @@ export function buildReporterPlugin(config: ResolvedConfig): Plugin { this.warn( `\n(!) ${ module.id - } is dynamically imported by ${module.dynamicImporters - .map((m) => m) - .join(', ')} but also statically imported by ${module.importers - .map((m) => m) - .join( - ', ', - )}, dynamic import will not move module into another chunk.\n`, + } is dynamically imported by ${module.dynamicImporters.join( + ', ', + )} but also statically imported by ${module.importers.join( + ', ', + )}, dynamic import will not move module into another chunk.\n`, ) } }