mirror of
https://github.com/strapi/strapi.git
synced 2025-11-09 14:51:29 +00:00
Enable .jsx extension.
Fixes #13124 Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
f7f32afee7
commit
1ffac62397
@ -80,7 +80,7 @@ module.exports = ({
|
|||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.m?js$/,
|
test: /\.m?jsx?$/,
|
||||||
include: cacheDir,
|
include: cacheDir,
|
||||||
oneOf: [
|
oneOf: [
|
||||||
// Use babel-loader for files that distinct the ee and ce code
|
// 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,
|
include: pluginsPath,
|
||||||
use: {
|
use: {
|
||||||
loader: require.resolve('esbuild-loader'),
|
loader: require.resolve('esbuild-loader'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user