vercel / ncc

Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
https://npmjs.com/@vercel/ncc
MIT License
8.99k stars 285 forks source link

Outdated Terser causes a syntax issue when minify-ing code #1193

Open byCedric opened 4 weeks ago

byCedric commented 4 weeks ago

We are trying to swap out node-fetch for undici, but unfortunately we are running into ncc compiling issues. Specifically, there is a patched issue with Terser removing parentheses for !(#test in this), causing the syntax issue.

Is it possible to release a patch version with a more up-to-date Terser, to include this fix?