Skip to content

A platform for community discussion. Free, open, simple.

DEV: Do not remove `debugger` statements from themes (#18814)

David Taylor695b44269b9d
diff --git a/app/models/theme.rb b/app/models/theme.rb
index 6dbe460a22c..c8b577763f0 100644
--- a/app/models/theme.rb
+++ b/app/models/theme.rb
@@ -6,7 +6,7 @@ require 'json_schemer'
class Theme < ActiveRecord::Base
include GlobalPath
- BASE_COMPILER_VERSION = 66
+ BASE_COMPILER_VERSION = 67
attr_accessor :child_components
diff --git a/lib/theme_javascript_compiler.rb b/lib/theme_javascript_compiler.rb
index 25975dbb60f..f4f7047fe2a 100644
--- a/lib/theme_javascript_compiler.rb
+++ b/lib/theme_javascript_compiler.rb
@@ -52,6 +52,7 @@ class ThemeJavascriptCompiler
compress: {
negate_iife: false,
sequences: 30,
+ drop_debugger: false,
},
output: {
semicolons: false,