fix worker map

Signed-off-by: houhaoyu <houhaoyu@huawei.com>
Change-Id: I0875881e3eaf29e6afa60e747b1a906fb78e7d10
This commit is contained in:
houhaoyu
2022-04-21 20:06:13 +08:00
parent f66108aa6f
commit 82b2286124
+1 -1
View File
@@ -242,7 +242,7 @@ function loadWorker(projectConfig) {
}
const relativePath = path.relative(projectConfig.projectPath, worker);
if (filterWorker(relativePath)) {
projectConfig.entryObj[relativePath.replace(/\.(ts|js)$/,'')] = worker;
projectConfig.entryObj[relativePath.replace(/\.(ts|js)$/,'').replace(/\\/g, '/')] = worker;
}
})
} else {