Skip to content

Commit

Permalink
Restore mangleProps
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Apr 15, 2023
1 parent 6f2a12b commit 41ebbbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default defineConfig(options => {

const productionOptions = {
minify: true,
esbuildOptions(options, _context) {
options.mangleProps = /_$/
},
define: {
"process.env.NODE_ENV": JSON.stringify("production")
}
Expand Down

0 comments on commit 41ebbbc

Please sign in to comment.