From 11600910b9e57c4e05cbf365995997b1b5ea0bae Mon Sep 17 00:00:00 2001 From: voiceup Date: Fri, 1 Apr 2016 14:10:22 -0700 Subject: [PATCH] Add support for 'jsx' extensions It's fairly common for people having '.jsx' extensions for their react components. --- src/server/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/webpack.config.js b/src/server/webpack.config.js index 6d72933df4eb..b33e3011b5c2 100644 --- a/src/server/webpack.config.js +++ b/src/server/webpack.config.js @@ -29,7 +29,7 @@ const config = { module: { loaders: [ { - test: /\.js$/, + test: /\.jsx?$/, loader: 'babel', query: { presets: ['react', 'es2015', 'stage-2'] }, exclude: [path.resolve('./node_modules'), path.resolve(__dirname, 'node_modules')],