jrburke/require-cs — pull request #36 by wwoods (2012-11-15 19:13:29+00:00)
Title: Expose fetchText for other plugins' benefit; make safe with other plugins

Essentially, I wrote a css plugin as part of my jsProject base, and since you've put a fair bit of effort into making the fetchText() method from require-cs so nice, it's convenient to re-use that code to aid other plugins.

Additionally, if I have these two files as requirements in my project:

test.coffee
test.js

Then the current incarnation of require-cs will only load the first requirement, and substitute that module for the second request. This is because the name of the loaded module does not include the ".coffee" extension, making it impossible for RequireJS to tell a difference. Using the normalize() method seems to fix this; see commit in request.