petehunt/jsx-loader — pull request #34 by markfinger (2014-12-16 00:50:39+00:00)
Title: Improving the clarity of errors that occur during the JSX transformation

We're bundling components which are split across multiple files, unfortunately syntax errors in require'd files are throwing opaque errors which only report the line number and not the file. This pull request intercepts the errors and prepends the path to the file.

**Before**
`Error: ModuleBuildError: Module build failed: Error: Parse Error: Line 15: Unexpected token ?`

**After**
`Error: ModuleBuildError: Module build failed: Error: JSX loader failed on /Users/markfinger/Projects/bundanon-trust/crm/static/crm/jsx/contact_search/CheckboxFilter.jsx: Parse Error: Line 15: Unexpected token ?`