mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-05-25 22:49:15 +08:00
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…
x
Reference in New Issue
Block a user