From 416980f06364c27e1d67c5c6fbed01606e513d5a Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 3 Dec 2025 20:48:02 +0100 Subject: [PATCH] :bug: Fix issue on render template on dist bundle (#7899) --- frontend/scripts/_helpers.js | 40 +++++++++++------------------------- 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/frontend/scripts/_helpers.js b/frontend/scripts/_helpers.js index 2469db6fa0..2af9462f9e 100644 --- a/frontend/scripts/_helpers.js +++ b/frontend/scripts/_helpers.js @@ -188,36 +188,20 @@ async function readManifestFile() { async function readShadowManifest() { const ts = Date.now(); - try { - const content = await readManifestFile(); - const index = { - ts: ts, - config: "./js/config.js", - polyfills: "./js/polyfills.js", - worker_main: "./js/worker/main.js", - libs: "./js/libs.js", - }; + const index = { + ts: ts, + config: "./js/config.js", + polyfills: "./js/polyfills.js", + main: "./js/main.js", + shared: "./js/shared.js", + render: "./js/render.js", + worker_main: "./js/worker/main.js", + rasterizer: "./js/rasterizer.js", + libs: "./js/libs.js", + }; - for (let item of content) { - index[item.name] = "./js/" + item["output-name"] + ""; - } - - return index; - } catch (cause) { - const index = { - ts: ts, - config: "./js/config.js", - polyfills: "./js/polyfills.js", - main: "./js/main.js", - shared: "./js/shared.js", - worker_main: "./js/worker/main.js", - rasterizer: "./js/rasterizer.js", - libs: "./js/libs.js", - }; - - return index; - } + return index; } async function renderTemplate(path, context = {}, partials = {}) {