diff --git a/src/plugins/bytecode.ts b/src/plugins/bytecode.ts index 835fd12..6884bf6 100644 --- a/src/plugins/bytecode.ts +++ b/src/plugins/bytecode.ts @@ -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(