Unverified Commit 9c9fdabb authored by Lucas's avatar Lucas Committed by GitHub

Fix next-flight-loader resourcePath in Windows (#48152)

### What?
It's path backslash and string escape bug at
[next-flight-loader](https://linear.app/vercel/issue/NEXT-flight-loader),
in Windows

### Why?

### How?

Closes NEXT-940
Fixes #47704
parent 772f3e75
...@@ -64,7 +64,7 @@ export default async function transformSource( ...@@ -64,7 +64,7 @@ export default async function transformSource(
let esmSource = `\ let esmSource = `\
import { createProxy } from "${moduleProxy}" import { createProxy } from "${moduleProxy}"
const proxy = createProxy("${this.resourcePath}") const proxy = createProxy(String.raw\`${this.resourcePath}\`)
// Accessing the __esModule property and exporting $$typeof are required here. // Accessing the __esModule property and exporting $$typeof are required here.
// The __esModule getter forces the proxy target to create the default export // The __esModule getter forces the proxy target to create the default export
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment