Deprecate jsx extension

This commit is contained in:
Jordan Eldredge 2017-01-17 17:51:21 -08:00
parent 0872f5fad4
commit 4bd28d0053
33 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@
"description": "Winamp 2 implemented in HTML5 and JavaScript",
"main": "index.html",
"scripts": {
"lint": "eslint --ext js,jsx .",
"lint": "eslint .",
"build": "webpack --config=webpack.production.config.js",
"serve": "webpack-dev-server",
"weight": "npm run build && gzip-size built/winamp.js | pretty-bytes",

View file

@ -2,7 +2,7 @@ const path = require('path');
module.exports = {
resolve: {
extensions: ['', '.js', '.jsx']
extensions: ['', '.js']
},
module: {
loaders: [
@ -15,7 +15,7 @@ module.exports = {
loader: 'url-loader?limit=100000'
},
{
test: /\.jsx?$/,
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel' // 'babel-loader' is also a legal name to reference
}