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
kdy1
kdy12mo ago
Can you please wait, or send a PR?
yiyou
yiyouOP2mo ago
OK, bro, I'm willing to wait. I'm very sorry, I'm still learning rust and may not be able to submit PR for the time being.

Did you find this page helpful?