-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c125463
commit 46d21ec
Showing
5 changed files
with
194 additions
and
41 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
Empty file.
15 changes: 14 additions & 1 deletion
15
crates/turbopack/tests/node-file-trace/integration/mdx/index.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 |
---|---|---|
@@ -1 +1,14 @@ | ||
import Example from "./example.mdx"; | ||
const moduleAlias = require("module-alias"); | ||
const os = require("os"); | ||
|
||
require("./empty"); | ||
|
||
moduleAlias.addAlias("./example.mdx", __dirname + "/empty.js"); | ||
|
||
const Example = require("./example.mdx"); | ||
|
||
const { existsSync } = eval("require")("fs"); | ||
|
||
if (__dirname.startsWith(os.tmpdir()) && existsSync("./snowfall.jsx")) { | ||
throw new Error("snowfall.jsx should not exist"); | ||
} |
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
Oops, something went wrong.