From a97d349cd6af6b17102235e981e283cf1e6aa3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Tue, 26 Jul 2022 16:26:39 +0800 Subject: [PATCH] fix(build): add target (#9018) --- internal/build/src/tasks/full-bundle.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/build/src/tasks/full-bundle.ts b/internal/build/src/tasks/full-bundle.ts index 4076b58827..23e0567ee2 100644 --- a/internal/build/src/tasks/full-bundle.ts +++ b/internal/build/src/tasks/full-bundle.ts @@ -55,7 +55,12 @@ async function buildFullEntry(minify: boolean) { }), ] if (minify) { - plugins.push(minifyPlugin({ sourceMap: true })) + plugins.push( + minifyPlugin({ + target, + sourceMap: true, + }) + ) } const bundle = await rollup({