We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e7b78d commit 8a38d8eCopy full SHA for 8a38d8e
packages/codehike/src/mdx/0.import-code-from-path.ts
@@ -56,8 +56,8 @@ async function readFile(
56
let fs, path
57
58
try {
59
- fs = (await import("fs")).default
60
- path = (await import("path")).default
+ fs = require("fs")
+ path = require("path")
61
if (!fs || !fs.readFileSync || !path || !path.resolve) {
62
throw new Error("fs or path not found")
63
}
0 commit comments