Signed-off-by: laibo <laibo2@huawei.com>
This commit is contained in:
laibo
2022-03-04 18:25:48 +08:00
parent 8a5e0adb3f
commit 471039fb35
+1 -1
View File
@@ -297,7 +297,7 @@ function loadWorker(entryObj) {
const workerConfig = JSON.parse(fs.readFileSync(process.env.aceBuildJson).toString());
workerConfig.forEach(worker => {
if (!/\.(js)$/.test(worker)) {
worker += '.js'
worker += '.js';
}
const relativePath = path.relative(process.env.projectPath, worker);
if (filterWorker(relativePath)) {