fix(bytecodePlugin): bytecode loader relative path is incorrect

This commit is contained in:
alex8088 2023-06-18 16:21:38 +08:00
parent b71bf82f02
commit 3def0ed84b

View file

@ -275,7 +275,7 @@ export function bytecodePlugin(options: BytecodeOptions = {}): Plugin | null {
} }
const getBytecodeLoaderBlock = (chunkFileName: string): string => { const getBytecodeLoaderBlock = (chunkFileName: string): string => {
return `require("${toRelativePath(bytecodeModuleLoader, chunkFileName)}");` return `require("${toRelativePath(bytecodeModuleLoader, normalizePath(chunkFileName))}");`
} }
await Promise.all( await Promise.all(