Skip to content

Commit

Permalink
chore: remove terser -> swc replacement as core is already using swc
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 9, 2024
1 parent 30c34ab commit f237072
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`

Expand Down

0 comments on commit f237072

Please sign in to comment.