File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { buildBrowserFromString } from "../browserstack/buildBrowserFromString.j
9
9
import { run as runTests } from "../run.js" ;
10
10
import readYAML from "../lib/readYAML.js" ;
11
11
import { createTestServer } from "../createTestServer.js" ;
12
- import { fileURLToPath , pathToFileURL } from "node:url" ;
12
+ import { pathToFileURL } from "node:url" ;
13
13
14
14
const program = new Command ( ) ;
15
15
const DEFAULT_PORT = 3000 ;
@@ -253,7 +253,7 @@ async function parseMiddleware( config, options ) {
253
253
const middleware = await Promise . all (
254
254
[ ...( config . middleware ?? [ ] ) , ...( options . middleware ?? [ ] ) ] . map (
255
255
async ( mw ) => {
256
- const module = await import ( fileURLToPath ( resolve ( process . cwd ( ) , mw ) ) ) ;
256
+ const module = await import ( pathToFileURL ( resolve ( process . cwd ( ) , mw ) ) ) ;
257
257
return module . default ;
258
258
}
259
259
)
You can’t perform that action at this time.
0 commit comments