vastec / ember-unused-components

Search for unused components in your Ember project
51 stars 12 forks source link

Does not work for .coffee and .ts files #17

Open boris-petrov opened 5 years ago

boris-petrov commented 5 years ago

Reading through the code, one can see in the lib/analyzer.js file in the mapComponents function:

let recognizer = config.usePods || config.useModuleUnification ? '/component.js' : '.js';

if (filename.includes(recognizer)) {

In the case when neither pods, nor MU is used, a file extension of js is expected. This won't work correctly for .coffee and .ts files.