From 3c4ed9a48c0fec86130909c8defb5ef05ac1f858 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 30 Oct 2023 17:11:47 -0400 Subject: [PATCH] fix: Exclude openedx scoped packages. We are moving packages to the `openedx` scope but those packages will also not be transpiled and we'll need to handle them in the same way. Marking this as a fix because we want to release a new version with this exclusion before we start moving more packages to the new scope. --- config/webpack.dev-stage.config.js | 2 +- config/webpack.dev.config.js | 2 +- config/webpack.prod.config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/webpack.dev-stage.config.js b/config/webpack.dev-stage.config.js index 8bdd0bcc8..57dfcf351 100644 --- a/config/webpack.dev-stage.config.js +++ b/config/webpack.dev-stage.config.js @@ -47,7 +47,7 @@ module.exports = merge(commonConfig, { // Babel is configured with the .babelrc file at the root of the project. { test: /\.(js|jsx)$/, - exclude: /node_modules\/(?!@edx)/, + exclude: /node_modules\/(?!@(open)?edx)/, use: { loader: 'babel-loader', options: { diff --git a/config/webpack.dev.config.js b/config/webpack.dev.config.js index 4d4083ca5..5ce771608 100644 --- a/config/webpack.dev.config.js +++ b/config/webpack.dev.config.js @@ -48,7 +48,7 @@ module.exports = merge(commonConfig, { // Babel is configured with the .babelrc file at the root of the project. { test: /\.(js|jsx|ts|tsx)$/, - exclude: /node_modules\/(?!@edx)/, + exclude: /node_modules\/(?!@(open)?edx)/, use: { loader: 'babel-loader', options: { diff --git a/config/webpack.prod.config.js b/config/webpack.prod.config.js index c9dab11a2..2879dd90b 100644 --- a/config/webpack.prod.config.js +++ b/config/webpack.prod.config.js @@ -71,7 +71,7 @@ module.exports = merge(commonConfig, { // Babel is configured with the .babelrc file at the root of the project. { test: /\.(js|jsx)$/, - exclude: /node_modules\/(?!@edx)/, + exclude: /node_modules\/(?!@(open)?edx)/, use: { loader: 'babel-loader', options: {