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 bad48e3 commit 45f515fCopy full SHA for 45f515f
packages/core/src/ConfigBuilder.ts
@@ -104,12 +104,13 @@ export const fromPath = Effect.fnUntraced(function*(
104
const path = yield* Path.Path
105
106
const content = yield* Effect.orDie(fs.readFileString(outPath))
107
+ const resolvedPath = path.resolve(outPath)
108
109
const context = VM.createContext({
110
...globalThis,
111
process,
- __filename: outPath,
112
- __dirname: path.dirname(outPath)
+ __filename: resolvedPath,
113
+ __dirname: path.dirname(resolvedPath)
114
})
115
context.require = Module.createRequire(entrypoint)
116
context.module = { exports: {} }
0 commit comments