Skip to content

Commit 40d075b

Browse files
committed
Fix testing aginst unminified build
1 parent aec6d8e commit 40d075b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ function patchCjsInterop() {
4747
let code = [
4848
`import {createRequire as __global__createRequire__} from 'module'`,
4949
`import {dirname as __global__dirname__} from 'path'`,
50-
`import {fileURLToPath} from 'url'`,
50+
`import {fileURLToPath as __global__fileURLToPath__} from 'url'`,
5151

5252
// CJS interop fixes
5353
`const require=__global__createRequire__(import.meta.url)`,
54-
`const __filename=fileURLToPath(import.meta.url)`,
54+
`const __filename=__global__fileURLToPath__(import.meta.url)`,
5555
`const __dirname=__global__dirname__(__filename)`,
5656
]
5757

0 commit comments

Comments
 (0)