atomic-coders / react-boilerplate

Yet another starter boilerplate with lot's of goodies: React, Redux, ES2015, JSPM, hot-reloading, Karma + Mocha + Enzyme + Chai, Istanbul + isparta, ESLint + XO
MIT License
13 stars 1 forks source link

Support for .jsx extension #1

Open dfreire opened 8 years ago

dfreire commented 8 years ago

It would be nice if react component files could have the .jsx file extension.

A quick test renaming the App.js component to App.jsx and fixing the imports, will throw:

28 06 2016 16:58:42.861:WARN [web-server]: 404: /base/src/components/App.jsx.js
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
  Error: (SystemJS) XHR error (404 Not Found) loading /demo/react-boilerplate/src/components/App.jsx.js
    Error loading /demo/react-boilerplate/src/components/App.jsx.js as "../../src/components/App.jsx" from /demo/react-boilerplate/tests/components/App.spec.js