From 3def0ed84b4ef17a797edde5b57dd5b1a34ebe50 Mon Sep 17 00:00:00 2001 From: alex8088 <244096523@qq.com> Date: Sun, 18 Jun 2023 16:21:38 +0800 Subject: [PATCH] fix(bytecodePlugin): bytecode loader relative path is incorrect --- src/plugins/bytecode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(