Ember CLI previously used index.js as a fallback path, but it should have checked the main property first (which is being added in https://github.com/ember-cli/ember-cli/pull/3545). However, if main is used with broccoli-asset-rev we do not get the right entry script (we would get lib/asset-rev.js instead of index.js).
This fixes that issue by defining the custom ember-addon.main entry point script. This is backwards compatible.
Ember CLI previously used
index.js
as a fallback path, but it should have checked themain
property first (which is being added in https://github.com/ember-cli/ember-cli/pull/3545). However, ifmain
is used withbroccoli-asset-rev
we do not get the right entry script (we would getlib/asset-rev.js
instead ofindex.js
).This fixes that issue by defining the custom
ember-addon.main
entry point script. This is backwards compatible.