allow jsx or js extension

This commit is contained in:
Devin Howard 2016-08-01 08:54:09 +08:00
parent 2085460c91
commit 4d99bd2265

View file

@ -6,7 +6,7 @@ const config = module.exports = {
module: {
loaders: [
{
test: /\.js$/,
test: /\.(js|jsx)?$/,
exclude: /node_modules/,
loaders: [
"babel-loader?cacheDirectory"