Skip to content

Commit

Permalink
adding mjs rule
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalacho-mit committed Sep 28, 2024
1 parent 142131c commit f194f0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/scratch-gui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f194f0f

Please sign in to comment.