madskristensen / WebPackTaskRunner

A Visual Studio extension
Other
39 stars 16 forks source link

Adjust JSX loader configuration #7

Closed scottaddie closed 8 years ago

scottaddie commented 8 years ago

This PR includes the following 3 changes to the JSX loader configuration in the WebPack configuration file:

  1. Remove the trailing comma, as it is bound to cause someone problems when using JSHint, ESLint, etc.
  2. Drop jsx-loader in favor of babel-loader, as Babel is the JSX compilation tool now used internally at Facebook
  3. Adjust the loader regex to work with both .js and .jsx file extensions, as opposed to just .js