karma-runner/karma-commonjs — pull request #19 by pkozlowski-opensource (2014-03-24 18:01:38+00:00)
Title: fix: allow processing non-js files

Before this change the plugin assumed that all CJS files are available under their original names, which is making it difficult to use with files compiled to JS from other languages (Coffee etc.). Coffee processor is changing a file name (https://github.com/karma-runner/karma-coffee-preprocessor/blob/master/index.js#L14) but CJS plugin was "blind" to those changes.

I'm not sure if this is the best fix and I can think of different approaches so would be grateful for a review. Also not fully aware of other consequences of changing a file name like this on other parts of Karma pipeline (caching etc.) so review is even more welcomed :-)