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") }