When using targetFormat: 'hbs' it acts as a polyfill for the ahead-of-time compiler as described in the RFC, using only stable public APIs. Assuming the RFC is approved and implemented, this implementation could change so it leaves template() alone, rather than replacing it with precompileTemplate and setComponentTemplate.
When using targetFormat: 'wire' it's not really a polyfill, since this package is the definitive implementation.
Edited to add: the call signature in the RFC has changed, this PR needs updating to that new call signature.
This implements https://github.com/emberjs/rfcs/pull/931, which defines a stable low-level representation for template tags.
When using
targetFormat: 'hbs'
it acts as a polyfill for the ahead-of-time compiler as described in the RFC, using only stable public APIs. Assuming the RFC is approved and implemented, this implementation could change so it leavestemplate()
alone, rather than replacing it withprecompileTemplate
andsetComponentTemplate
.When using
targetFormat: 'wire'
it's not really a polyfill, since this package is the definitive implementation.There are skipped tests to cover cases that are important but will depend on https://github.com/glimmerjs/glimmer-vm/pull/1421
targetFormat: 'wire'
with explicit formtargetFormat: 'hbs'
with explicit formtargetFormat: 'wire'
with implicit formtargetFormat: 'hbs'
with implicit form