fix(bytecodePlugin): bytecode loader relative path is incorrect
This commit is contained in:
parent
b71bf82f02
commit
3def0ed84b
|
@ -275,7 +275,7 @@ export function bytecodePlugin(options: BytecodeOptions = {}): Plugin | null {
|
|||
}
|
||||
|
||||
const getBytecodeLoaderBlock = (chunkFileName: string): string => {
|
||||
return `require("${toRelativePath(bytecodeModuleLoader, chunkFileName)}");`
|
||||
return `require("${toRelativePath(bytecodeModuleLoader, normalizePath(chunkFileName))}");`
|
||||
}
|
||||
|
||||
await Promise.all(
|
||||
|
|
Loading…
Reference in a new issue