felipecrv / jsx-requirejs-plugin

A RequireJS plugin for loading and compiling (with r.js) JavaScript files containing JSX.
MIT License
270 stars 44 forks source link

throw ENOENT when file is not found #33

Closed aronwoost closed 9 years ago

aronwoost commented 9 years ago

When trying to load a not-existing-file in node environment, currently the script does nothing, it simply hangs (in the browser xhr correctly throws 404).

This PR throws the ENOENT error raised by fs.readFileSync in require.text.js.

felipecrv commented 9 years ago

@aronwoost I squashed and merged manually. Thanks!