ember-cli / babel-plugin-htmlbars-inline-precompile

Babel plugin to replace tagged template strings with precompiled HTMLBars templates
9 stars 21 forks source link

Ensure proposal syntaxes work with Ember module API polyfill #346

Closed pzuraq closed 3 years ago

pzuraq commented 3 years ago

Due to race conditions, some of the imports added by this plugin are not processed in time by the Ember module API polyfill plugin. They are instead handled by the AMD loader transform, and then never handled correctly at all. This PR uses the new JS API exposed from the module API polyfill plugin to manually process any new import statements. To enable this, users should pass the ensureModuleApiPolyfill option.