mirror of
https://github.com/openharmony/developtools_ace-js2bundle.git
synced 2026-07-21 06:05:27 -04:00
fix worker map Signed-off-by: houhaoyu <houhaoyu@huawei.com> Change-Id: I7074b6dee8ab304dc6b54d7528fda47e8678fb4f
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user