From f194f0f383afbd378cb32e26def7c28533d0578d Mon Sep 17 00:00:00 2001 From: "Github Action (authored by pmalacho-mit)" Date: Sat, 28 Sep 2024 10:39:54 -0700 Subject: [PATCH] adding mjs rule --- packages/scratch-gui/webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/scratch-gui/webpack.config.js b/packages/scratch-gui/webpack.config.js index 83dc39134..48b7cf315 100644 --- a/packages/scratch-gui/webpack.config.js +++ b/packages/scratch-gui/webpack.config.js @@ -45,13 +45,14 @@ const base = { }, module: { rules: [{ - test: /\.jsx?$/, + test: /\.m?jsx?$/, loader: 'babel-loader', include: [ path.resolve(__dirname, 'src'), /node_modules[\\/]scratch-[^\\/]+[\\/]src/, /node_modules[\\/]pify/, - /node_modules[\\/]@vernier[\\/]godirect/ + /node_modules[\\/]@vernier[\\/]godirect/, + /node_modules[\\/]@mediapipe[\\/]/, ], options: { // Explicitly disable babelrc so we don't catch various config