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 aec6d8e commit 40d075bCopy full SHA for 40d075b
build.mjs
@@ -47,11 +47,11 @@ function patchCjsInterop() {
47
let code = [
48
`import {createRequire as __global__createRequire__} from 'module'`,
49
`import {dirname as __global__dirname__} from 'path'`,
50
- `import {fileURLToPath} from 'url'`,
+ `import {fileURLToPath as __global__fileURLToPath__} from 'url'`,
51
52
// CJS interop fixes
53
`const require=__global__createRequire__(import.meta.url)`,
54
- `const __filename=fileURLToPath(import.meta.url)`,
+ `const __filename=__global__fileURLToPath__(import.meta.url)`,
55
`const __dirname=__global__dirname__(__filename)`,
56
]
57
0 commit comments