Skip to content

Commit bef43f6

Browse files
authored
Revert "Fix client boundary inheritance for barrel optimization (#64467)"
This reverts commit cb8fb32.
1 parent 33e8334 commit bef43f6

File tree

13 files changed

+1
-103
lines changed

13 files changed

+1
-103
lines changed

packages/next/src/build/webpack/loaders/next-barrel-loader.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,9 @@ async function getBarrelMapping(
221221
true,
222222
isClientEntry
223223
)
224-
225224
if (targetMatches) {
226225
// Merge the export list
227226
exportList = exportList.concat(targetMatches.exportList)
228-
// Inherit the client boundary from the target matched file
229-
isClientEntry = isClientEntry || targetMatches.isClientEntry
230227
}
231228
})
232229
)

test/development/basic/barrel-optimization/barrel-optimization-mui.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { hasRedbox } from 'next-test-utils'
1414
files: join(__dirname, 'fixture'),
1515

1616
dependencies: {
17-
'@mui/material': '5.15.15',
17+
'@mui/material': '5.15.4',
1818
'@emotion/react': '11.11.1',
1919
'@emotion/styled': '11.11.0',
2020
},

test/production/app-dir/barrel-optimization/basic/app/layout.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/production/app-dir/barrel-optimization/basic/app/page.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/production/app-dir/barrel-optimization/basic/index.test.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

test/production/app-dir/barrel-optimization/basic/next.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/production/app-dir/barrel-optimization/basic/node_modules/my-lib/client/client-module.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/production/app-dir/barrel-optimization/basic/node_modules/my-lib/client/index.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

test/production/app-dir/barrel-optimization/basic/node_modules/my-lib/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

test/production/app-dir/barrel-optimization/basic/node_modules/my-lib/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)