Skip to content

Commit

Permalink
make babel/runtime external
Browse files Browse the repository at this point in the history
  • Loading branch information
kangzj committed Jan 9, 2025
1 parent f246f08 commit df31c02
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion projects/js-packages/charts/tools/webpack.common.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ const getCommonConfig = isESM => ( {
resolve: {
extensions: [ '.tsx', '.ts', '.js', '.jsx' ],
},
externals: [ 'react', 'react-dom', /^@visx\/.*/, '@react-spring/web', 'clsx', 'tslib' ],
externals: [
'react',
'react-dom',
/^@visx\/.*/,
'@react-spring/web',
'clsx',
'tslib',
'@babel/runtime',
],
plugins: [
new CleanWebpackPlugin(),
new MiniCssExtractPlugin( {
Expand Down

0 comments on commit df31c02

Please sign in to comment.