diff --git a/compiler/main.js b/compiler/main.js index f2044d3..1edb7b9 100644 --- a/compiler/main.js +++ b/compiler/main.js @@ -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 {