DEV: Patch Ruby Ember template compiler to work with recent ember

This commit is contained in:
David Taylor
2022-07-18 10:18:16 +01:00
parent 20fd81c2dc
commit a4c4d3cb50
3 changed files with 40 additions and 3 deletions

View File

@ -17,7 +17,8 @@ class ThemeJavascriptCompiler
node.params.unshift({
type: "NumberLiteral",
value: #{@theme_id},
original: #{@theme_id}
original: #{@theme_id},
loc: { start: {}, end: {} }
})
}
}
@ -58,7 +59,7 @@ class ThemeJavascriptCompiler
def discourse_extension
<<~JS
Ember.HTMLBars.registerPlugin('ast', function() {
module.exports.registerPlugin('ast', function() {
return {
name: 'theme-template-manipulator',
visitor: {