A local-first personal finance app
Enable compress without dropping debugger to avoid SyntaxError in safari 16 {to #1766} (#2825)
lichen026194e5e2f9
diff --git a/packages/loot-core/webpack/webpack.browser.config.js b/packages/loot-core/webpack/webpack.browser.config.jsindex 6b9a70c6e5..9498880591 100644--- a/packages/loot-core/webpack/webpack.browser.config.js+++ b/packages/loot-core/webpack/webpack.browser.config.js@@ -73,7 +73,9 @@ module.exports = {// `terserOptions` options will be passed to `swc` (`@swc/core`)// Link to options - https://swc.rs/docs/config-js-minifyterserOptions: {- compress: false,+ compress: {+ drop_debugger: false,+ },mangle: true,},}),diff --git a/upcoming-release-notes/2825.md b/upcoming-release-notes/2825.mdnew file mode 100644index 0000000000..fdb75300c7--- /dev/null+++ b/upcoming-release-notes/2825.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [chinalichen]+---++Enable compress to avoid minified scripts from throwing SyntaxError in safari16