When using targetFormat:' hbs', there's no reason to require the compiler or compilerPath options because the precise version of the compiler doesn't matter. We can use our own @glimmer/syntax dependency directly, because the output will be broadly compatible.
It's only targetFormat: 'wire' where we require the user provides the ember-version-specific compiler or compilerPath, because then we're going to output the exact wire format for that version.
When using
targetFormat:' hbs'
, there's no reason to require thecompiler
orcompilerPath
options because the precise version of the compiler doesn't matter. We can use our own@glimmer/syntax
dependency directly, because the output will be broadly compatible.It's only
targetFormat: 'wire'
where we require the user provides the ember-version-specificcompiler
orcompilerPath
, because then we're going to output the exact wire format for that version.