Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions webpack/config.examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = [
module: {
rules: [
{
test: /\.js$/,
test: /\.[jt]sx?$/,
Copy link
Collaborator Author

@clairep94 clairep94 Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main change to solve the issue, screenshot in description was taken after just this change

include tsx just in case?

I updated the rest of the babel-loader regex patterns to be this pattern to include tsx jsx just in case so it's a bit more flexible even if the fetching script is from the server. happy to revert if stricter is preferred @raclim

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much! This sounds good to me! If needed, we can follow up with any changes!

exclude: /node_modules/,
loader: 'babel-loader',
options: {
Expand Down Expand Up @@ -52,7 +52,7 @@ module.exports = [
module: {
rules: [
{
test: /\.[jt]s$/,
test: /\.[jt]sx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
options: {
Expand Down Expand Up @@ -82,7 +82,7 @@ module.exports = [
module: {
rules: [
{
test: /\.[jt]s$/,
test: /\.[jt]sx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
options: {
Expand Down
2 changes: 1 addition & 1 deletion webpack/config.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
module: {
rules: [
{
test: /\.[jt]s$/,
test: /\.[jt]sx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
options: {
Expand Down
Loading