Skip to content

Commit b3a3b0a

Browse files
LaurentClaesclaude
andcommitted
Transpile all modern node_modules for webpack 4 in styleguide
Broaden babel-loader rule to cover framer-motion, motion-dom, motion-utils, and animejs which all use optional chaining syntax. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 172a543 commit b3a3b0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/styleguide/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ module.exports = {
140140
exclude: [/node_modules/, /use-screen-size\/lib/, /react-drylus\/lib/],
141141
},
142142
{
143-
test: /\.mjs$/,
144-
include: /node_modules\/framer-motion/,
143+
test: /\.m?js$/,
144+
include: /node_modules\/(framer-motion|motion-dom|motion-utils|animejs)/,
145145
type: 'javascript/auto',
146146
use: [{
147147
loader: 'babel-loader',

0 commit comments

Comments
 (0)