Skip to content

Commit 54c78ec

Browse files
authoredJan 14, 2025··
Fix ERR_REQUIRE_ASYNC_MODULE error when executing gulp (#23687)
1 parent 57a17b8 commit 54c78ec

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed
 

‎build-scripts/gulp/index.mjs

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import "./app.js";
2+
import "./cast.js";
3+
import "./clean.js";
4+
import "./compress.js";
5+
import "./demo.js";
6+
import "./download-translations.js";
7+
import "./entry-html.js";
8+
import "./fetch-nightly-translations.js";
9+
import "./gallery.js";
10+
import "./gather-static.js";
11+
import "./gen-icons-json.js";
12+
import "./hassio.js";
13+
import "./landing-page.js";
14+
import "./locale-data.js";
15+
import "./rspack.js";
16+
import "./service-worker.js";
17+
import "./translations.js";

‎gulpfile.js

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
import { globIterate } from "glob";
21
import { availableParallelism } from "node:os";
2+
import "./build-scripts/gulp/index.mjs";
33

44
process.env.UV_THREADPOOL_SIZE = availableParallelism();
5-
6-
const gulpImports = [];
7-
8-
for await (const gulpModule of globIterate("build-scripts/gulp/*.?(c|m)js", {
9-
dotRelative: true,
10-
})) {
11-
gulpImports.push(import(gulpModule));
12-
}
13-
14-
// Since all tasks are currently registered with gulp.task(), this is enough
15-
// If any are converted to named exports, need to loop and aggregate exports here
16-
await Promise.all(gulpImports);

0 commit comments

Comments
 (0)
Please sign in to comment.