feat: resolve jsx files (#2063)

We resolve `.jsx` files such that they get handled by babel and bundled
with webpack.

Change-Type: patch
Changelog-Entry: Resolve JSX files
This commit is contained in:
Benedict Aas 2018-02-20 13:03:47 +00:00 committed by GitHub
parent 1dcbcef705
commit f060dc896f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ module.exports = {
module: {
rules: [
{
test: /\.js?$/,
test: /\.jsx?$/,
include: [ path.resolve(__dirname, 'lib/gui') ],
use: {
loader: 'babel-loader',
@ -66,5 +66,8 @@ module.exports = {
}
}
]
},
resolve: {
extensions: [ '.js', '.jsx' ]
}
}