We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 408c103 commit aaa9eceCopy full SHA for aaa9ece
babel.config.js
@@ -45,7 +45,9 @@ module.exports = function getBabelConfig(api) {
45
plugins: [...(baseConfig.plugins ?? []), ...plugins],
46
overrides: [
47
{
48
- exclude: /\.test\.(m?js|ts|tsx)$/,
+ // Reduces cold start time of tests. Hoisting the elements is also almost never intended for test files.
49
+ // Context https://github.com/mui/material-ui/pull/26448
50
+ exclude: /\.test\.(js|tsx)$/,
51
plugins: ['@babel/plugin-transform-react-constant-elements'],
52
},
53
0 commit comments