From f2370720d29d568a3798c596abe5fa0a9aa4d0db Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 9 Aug 2024 22:59:23 +0800 Subject: [PATCH] chore: remove terser -> swc replacement as core is already using swc --- utils.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/utils.ts b/utils.ts index b727d32..514fd1e 100644 --- a/utils.ts +++ b/utils.ts @@ -406,19 +406,11 @@ export async function buildVue({ verify = false, publish = false }) { cd(vuePath) const install = getCommand('pnpm', 'install') - // https://swc.rs/docs/configuration/minification#replacing-terser - // This could reduce CI build time significantly - const replaceTerser = getCommand('pnpm', 'add', [ - 'terser@npm:@swc/core', - '--save-dev', - '--ignore-workspace-root-check', - ]) const runBuild = getCommand('pnpm', 'run', ['build', '--release']) const runBuildDts = getCommand('pnpm', 'run', ['build-dts']) const runTest = getCommand('pnpm', 'run', ['test']) // Prefix with `corepack` because pnpm 7 & 8's lockfile formats differ await $`corepack ${install}` - await $`corepack ${replaceTerser}` await $`${runBuild}` await $`${runBuildDts}`