A platform for community discussion. Free, open, simple.
DEV: Build theme transpiler in custom envs (#23785)
Jarek Radoszfbf92a2212fc
diff --git a/lib/discourse_js_processor.rb b/lib/discourse_js_processor.rbindex a70361325a4..0526b0845e3 100644--- a/lib/discourse_js_processor.rb+++ b/lib/discourse_js_processor.rb@@ -134,9 +134,7 @@ class DiscourseJsProcessorctx.attach("rails.logger.error", proc { |err| Rails.logger.error(err.to_s) })# Theme template AST transformation plugins- if Rails.env.development? || Rails.env.test?- @processor_mutex.synchronize { build_theme_transpiler }- end+ @processor_mutex.synchronize { build_theme_transpiler } if !Rails.env.production?ctx.eval(File.read(TRANSPILER_PATH), filename: "theme-transpiler.js")