Skip to content

Commit

Permalink
chore: remove terser for dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmagic2020 committed May 26, 2024
1 parent 8e69602 commit 3d48726
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ const config = {
}),
resolve(),
typescript(),
json(),
json()
]
}

if (!isDev) {
config.plugins.push(
terser({
compress: {
passes: 5,
Expand All @@ -76,9 +81,10 @@ const config = {
comments: false,
quote_style: 1,
wrap_iife: true,
beautify: options.build === "development"
beautify: false
}
})
]
)
}

export default config

0 comments on commit 3d48726

Please sign in to comment.