mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What Inherit the client boudaries from the found matched target in load barrel ### Why The root cause with the barrel transform, we missed the client boundary directive during the transform. Since the new version of mui's case looks like this: Import path page.js (server module) -> `<module>/index.js` (shared module) -> `<module/subpath>/index.js` (client module) -> `<module/subpath/sub-module.js> (client module) After our transform, we lost the `"use client"` which causes the mismatch of the transform: In `rsc` layer: the file pointing to the sub module entry (`<module/subpath>/index.js`), but without the client boundary. Fixes #64369 Closes NEXT-3101
24 lines
581 B
TypeScript
24 lines
581 B
TypeScript
import { createNextDescribe } from 'e2e-utils'
|
|
|
|
describe('Skipped in Turbopack', () => {
|
|
createNextDescribe(
|
|
'app-dir - optimizePackageImports - mui',
|
|
{
|
|
files: __dirname,
|
|
|
|
dependencies: {
|
|
'@mui/material': '5.15.15',
|
|
'@emotion/react': '11.11.1',
|
|
'@emotion/styled': '11.11.0',
|
|
},
|
|
},
|
|
({ next }) => {
|
|
it('should build successfully', async () => {
|
|
// Ensure that MUI is working
|
|
const $ = await next.render$('/')
|
|
expect(await $('#typography').text()).toContain('typography')
|
|
})
|
|
}
|
|
)
|
|
})
|