From 695b44269b9d09250a44aa40ff8a5ba4f96064f2 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 1 Nov 2022 13:56:33 +0000 Subject: [PATCH] DEV: Do not remove `debugger` statements from themes (#18814) --- app/models/theme.rb | 2 +- lib/theme_javascript_compiler.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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,