Skip to content

Commit

Permalink
Revert "Fix client boundary inheritance for barrel optimization (#64467
Browse files Browse the repository at this point in the history
…)"

This reverts commit cb8fb32.
  • Loading branch information
huozhi authored Apr 15, 2024
1 parent 33e8334 commit bef43f6
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 103 deletions.
3 changes: 0 additions & 3 deletions packages/next/src/build/webpack/loaders/next-barrel-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,9 @@ async function getBarrelMapping(
true,
isClientEntry
)

if (targetMatches) {
// Merge the export list
exportList = exportList.concat(targetMatches.exportList)
// Inherit the client boundary from the target matched file
isClientEntry = isClientEntry || targetMatches.isClientEntry
}
})
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { hasRedbox } from 'next-test-utils'
files: join(__dirname, 'fixture'),

dependencies: {
'@mui/material': '5.15.15',
'@mui/material': '5.15.4',
'@emotion/react': '11.11.1',
'@emotion/styled': '11.11.0',
},
Expand Down

This file was deleted.

9 changes: 0 additions & 9 deletions test/production/app-dir/barrel-optimization/basic/app/page.js

This file was deleted.

17 changes: 0 additions & 17 deletions test/production/app-dir/barrel-optimization/basic/index.test.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions test/production/app-dir/barrel-optimization/mui/app/layout.js

This file was deleted.

11 changes: 0 additions & 11 deletions test/production/app-dir/barrel-optimization/mui/app/page.js

This file was deleted.

23 changes: 0 additions & 23 deletions test/production/app-dir/barrel-optimization/mui/index.test.ts

This file was deleted.

0 comments on commit bef43f6

Please sign in to comment.