mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix issue on render template on dist bundle (#7899)
Some checks failed
_DEVELOP / build-bundle (push) Has been cancelled
_DEVELOP / build-docker (push) Has been cancelled
_STAGING / build-bundle (push) Has been cancelled
_STAGING / build-docker (push) Has been cancelled
Commit Message Check / Check Commit Message (push) Has been cancelled
CI / Linter (push) Has been cancelled
CI / Common Tests (push) Has been cancelled
CI / Frontend Tests (push) Has been cancelled
CI / Render WASM Tests (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Library Tests (push) Has been cancelled
CI / Build Integration Bundle (push) Has been cancelled
CI / Integration Tests 1/4 (push) Has been cancelled
CI / Integration Tests 2/4 (push) Has been cancelled
CI / Integration Tests 3/4 (push) Has been cancelled
CI / Integration Tests 4/4 (push) Has been cancelled
Some checks failed
_DEVELOP / build-bundle (push) Has been cancelled
_DEVELOP / build-docker (push) Has been cancelled
_STAGING / build-bundle (push) Has been cancelled
_STAGING / build-docker (push) Has been cancelled
Commit Message Check / Check Commit Message (push) Has been cancelled
CI / Linter (push) Has been cancelled
CI / Common Tests (push) Has been cancelled
CI / Frontend Tests (push) Has been cancelled
CI / Render WASM Tests (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Library Tests (push) Has been cancelled
CI / Build Integration Bundle (push) Has been cancelled
CI / Integration Tests 1/4 (push) Has been cancelled
CI / Integration Tests 2/4 (push) Has been cancelled
CI / Integration Tests 3/4 (push) Has been cancelled
CI / Integration Tests 4/4 (push) Has been cancelled
This commit is contained in:
@@ -188,36 +188,20 @@ async function readManifestFile() {
|
|||||||
|
|
||||||
async function readShadowManifest() {
|
async function readShadowManifest() {
|
||||||
const ts = Date.now();
|
const ts = Date.now();
|
||||||
try {
|
|
||||||
const content = await readManifestFile();
|
|
||||||
|
|
||||||
const index = {
|
const index = {
|
||||||
ts: ts,
|
ts: ts,
|
||||||
config: "./js/config.js",
|
config: "./js/config.js",
|
||||||
polyfills: "./js/polyfills.js",
|
polyfills: "./js/polyfills.js",
|
||||||
worker_main: "./js/worker/main.js",
|
main: "./js/main.js",
|
||||||
libs: "./js/libs.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) {
|
return index;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function renderTemplate(path, context = {}, partials = {}) {
|
async function renderTemplate(path, context = {}, partials = {}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user