Skip to content

Commit

Permalink
[test] Don't hoist constant elements (mui#26448)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored May 25, 2021
1 parent 529649f commit 3ed302d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ module.exports = function getBabelConfig(api) {
version: '^7.4.4',
},
],
'@babel/plugin-transform-react-constant-elements',
[
'babel-plugin-transform-react-remove-prop-types',
{
Expand All @@ -99,6 +98,12 @@ module.exports = function getBabelConfig(api) {
presets,
plugins,
ignore: [/@babel[\\|/]runtime/], // Fix a Windows issue.
overrides: [
{
exclude: /\.test\.(js|ts|tsx)$/,
plugins: ['@babel/plugin-transform-react-constant-elements'],
},
],
env: {
coverage: {
plugins: [
Expand Down

0 comments on commit 3ed302d

Please sign in to comment.