@cafreeman wrote:
Hi there,
I’m currently working on writing the polyfill for the new
{{#let
helper coming in Ember 3.2 (see this issue for more info).Since
let
uses an AST transform, we have to be careful about how we polyfill across different version, and currently I can’t find a way to polyfill it in 3.0 and 3.1.Prior versions of
let
relied on a function calledcompileList
from@glimmer/runtime
, while the official version oflet
in 3.2 relies on a method calledcompileParams
that lives on the the OpCodeBuilder itself.However, in 3.0 and 3.1, neither of those options exist and after a decent amount of source diving I haven’t been able to find a replacement.
You can see the code for the polyfill here. So far the tests are only failing for Ember 3.0 specifically.
So, my question is, what can I use to compile glimmer expressions in Ember 3.0 and 3.1, and also was it expected that this functionality would drop out of 3.0 but reappear in 3.2?
Posts: 4
Participants: 2