Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add input/output test for 30091 (#31166)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
9d7900c
commit 9fe0fda
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
packages/next/build/swc/tests/fixture/ssg/getStaticProps/issue-30091/input.js
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default function Home({}) { | ||
return ( | ||
<div> | ||
<p>Hello World</p> | ||
</div> | ||
) | ||
} | ||
|
||
export async function getStaticProps() { | ||
await import('_http_common').then((http) => console.log(http)) | ||
return { | ||
props: {}, | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/next/build/swc/tests/fixture/ssg/getStaticProps/issue-30091/output.js
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export var __N_SSG = true; | ||
export default function Home({}) { | ||
return __jsx("div", null, __jsx("p", null, "Hello World")); | ||
}; |