mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
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:
parent
1dcbcef705
commit
f060dc896f
@ -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' ]
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user