From 41ebbbc2f7983a7b65b4d0a442bf09567dfa9798 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Sat, 15 Apr 2023 20:11:46 +0200 Subject: [PATCH] Restore mangleProps --- tsup.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tsup.config.ts b/tsup.config.ts index 1aa7490a..6f572cd6 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -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") }