Skip to content
Snippets Groups Projects
Unverified Commit 026194e5 authored by lichen's avatar lichen Committed by GitHub
Browse files

Enable compress without dropping debugger to avoid SyntaxError in safari 16 {to #1766} (#2825)

parent 98341b44
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,9 @@ module.exports = {
// `terserOptions` options will be passed to `swc` (`@swc/core`)
// Link to options - https://swc.rs/docs/config-js-minify
terserOptions: {
compress: false,
compress: {
drop_debugger: false,
},
mangle: true,
},
}),
......
---
category: Bugfix
authors: [chinalichen]
---
Enable compress to avoid minified scripts from throwing SyntaxError in safari16
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment