fix worker map

Signed-off-by: houhaoyu <houhaoyu@huawei.com>
Change-Id: I7074b6dee8ab304dc6b54d7528fda47e8678fb4f
This commit is contained in:
houhaoyu
2022-04-22 14:59:17 +08:00
parent 913d7326ea
commit 6329a5dc5b
+1 -1
View File
@@ -317,7 +317,7 @@ function loadWorker(entryObj) {
}
const relativePath = path.relative(process.env.projectPath, worker);
if (filterWorker(relativePath)) {
entryObj[relativePath.replace(/\.(ts|js)$/,'')] = worker;
entryObj[relativePath.replace(/\.(ts|js)$/,'').replace(/\\/g, '/')] = worker;
}
})
} else {