Enable .jsx extension.

Fixes #13124

Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
soupette 2022-04-25 10:28:14 +02:00
parent f7f32afee7
commit 1ffac62397

View File

@ -80,7 +80,7 @@ module.exports = ({
module: {
rules: [
{
test: /\.m?js$/,
test: /\.m?jsx?$/,
include: cacheDir,
oneOf: [
// Use babel-loader for files that distinct the ee and ce code
@ -143,7 +143,7 @@ module.exports = ({
],
},
{
test: /\.m?js$/,
test: /\.m?jsx?$/,
include: pluginsPath,
use: {
loader: require.resolve('esbuild-loader'),