DEV: Apply theme template transforms to colocated components (#18704)

This commit is contained in:
David Taylor
2022-10-21 19:05:34 +01:00
committed by GitHub
parent c937b6dd36
commit cc439cf412
2 changed files with 10 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class ThemeJavascriptCompiler
transpiler = DiscourseJsProcessor::Transpiler.new
@output_tree << ["#{original_filename}.js", <<~JS]
if ('define' in window) {
#{transpiler.perform(script, "", name).strip}
#{transpiler.perform(script, "", name, theme_id: @theme_id).strip}
}
JS
rescue MiniRacer::RuntimeError, DiscourseJsProcessor::TranspileError => ex