-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Fix esm property def in flight loader (#66286)"
This reverts commit 38ac71b.
- Loading branch information
Showing
4 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
test/e2e/app-dir/app-routes-client-component/app-routes-client-component.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import { nextTestSetup } from 'e2e-utils' | ||
import { FileRef, nextTestSetup } from 'e2e-utils' | ||
import path from 'path' | ||
|
||
describe('referencing a client component in an app route', () => { | ||
const { next } = nextTestSetup({ | ||
files: __dirname, | ||
files: new FileRef(path.join(__dirname)), | ||
}) | ||
|
||
it('responds without error', async () => { | ||
expect(JSON.parse(await next.render('/runtime'))).toEqual({ | ||
clientComponent: 'function', | ||
myModuleClientComponent: 'function', | ||
// Turbopack's proxy components are functions | ||
clientComponent: process.env.TURBOPACK ? 'function' : 'object', | ||
myModuleClientComponent: process.env.TURBOPACK ? 'function' : 'object', | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters