SWC compression code triggers iOS bug
Hi everyone, I'm planning to migrate my project from Babel and Terser to swc . The benefits are great, but the minification product of swc.minify(code, option) triggers an iOS bug: https://bugs.webkit.org/show_bug.cgi?id=220517 Does anyone know how to fix this? https://github.com/swc-project/swc/issues/11083
GitHub
minifier: Duplicate parameter 'e' not allowed in function with dest...
Describe the bug use import swc from '@swc/core'; swc.minify(code, { compress: true, mangle: true }); output code Run this in Safari (iOS 16.2) throw error: Duplicate parameter 'e' ...
2 Replies