emberjs / babel-plugin-ember-template-compilation

Babel implementation of Ember's low-level template-compilation API
9 stars 11 forks source link

Don't require compiler when targetFormat='hbs' #28

Closed ef4 closed 1 year ago

ef4 commented 1 year ago

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.