mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-06 10:16:34 +00:00
Fix ERR_REQUIRE_ASYNC_MODULE error when executing gulp (#23687)
This commit is contained in:
parent
57a17b8663
commit
54c78ecc4d
17
build-scripts/gulp/index.mjs
Normal file
17
build-scripts/gulp/index.mjs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import "./app.js";
|
||||||
|
import "./cast.js";
|
||||||
|
import "./clean.js";
|
||||||
|
import "./compress.js";
|
||||||
|
import "./demo.js";
|
||||||
|
import "./download-translations.js";
|
||||||
|
import "./entry-html.js";
|
||||||
|
import "./fetch-nightly-translations.js";
|
||||||
|
import "./gallery.js";
|
||||||
|
import "./gather-static.js";
|
||||||
|
import "./gen-icons-json.js";
|
||||||
|
import "./hassio.js";
|
||||||
|
import "./landing-page.js";
|
||||||
|
import "./locale-data.js";
|
||||||
|
import "./rspack.js";
|
||||||
|
import "./service-worker.js";
|
||||||
|
import "./translations.js";
|
14
gulpfile.js
14
gulpfile.js
@ -1,16 +1,4 @@
|
|||||||
import { globIterate } from "glob";
|
|
||||||
import { availableParallelism } from "node:os";
|
import { availableParallelism } from "node:os";
|
||||||
|
import "./build-scripts/gulp/index.mjs";
|
||||||
|
|
||||||
process.env.UV_THREADPOOL_SIZE = availableParallelism();
|
process.env.UV_THREADPOOL_SIZE = availableParallelism();
|
||||||
|
|
||||||
const gulpImports = [];
|
|
||||||
|
|
||||||
for await (const gulpModule of globIterate("build-scripts/gulp/*.?(c|m)js", {
|
|
||||||
dotRelative: true,
|
|
||||||
})) {
|
|
||||||
gulpImports.push(import(gulpModule));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Since all tasks are currently registered with gulp.task(), this is enough
|
|
||||||
// If any are converted to named exports, need to loop and aggregate exports here
|
|
||||||
await Promise.all(gulpImports);
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user