elegance-js 2.0.14 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/page_compiler.mjs +4 -6
- package/package.json +1 -1
package/dist/page_compiler.mjs
CHANGED
|
@@ -698,7 +698,7 @@ var generateLayout = async (DIST_DIR2, filePath, directory, childIndicator) => {
|
|
|
698
698
|
return { pageContentHTML: renderedPage.bodyHTML, metadataHTML };
|
|
699
699
|
};
|
|
700
700
|
var builtLayouts = /* @__PURE__ */ new Map();
|
|
701
|
-
var buildLayouts = async (
|
|
701
|
+
var buildLayouts = async () => {
|
|
702
702
|
const pagesDirectory = path.resolve(options.pagesDirectory);
|
|
703
703
|
const subdirectories = [...getAllSubdirectories(pagesDirectory), ""];
|
|
704
704
|
let shouldClientHardReload = false;
|
|
@@ -713,10 +713,8 @@ var buildLayouts = async (DIST_DIR2) => {
|
|
|
713
713
|
continue;
|
|
714
714
|
}
|
|
715
715
|
try {
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
shouldClientHardReload = true;
|
|
719
|
-
}
|
|
716
|
+
const builtLayout = await buildLayout(filePath, directory);
|
|
717
|
+
builtLayouts.set(directory, builtLayout);
|
|
720
718
|
} catch (e) {
|
|
721
719
|
console.error(e);
|
|
722
720
|
continue;
|
|
@@ -942,7 +940,7 @@ var build = async () => {
|
|
|
942
940
|
}
|
|
943
941
|
let shouldClientHardReload;
|
|
944
942
|
{
|
|
945
|
-
const { shouldClientHardReload: doReload } = await buildLayouts(
|
|
943
|
+
const { shouldClientHardReload: doReload } = await buildLayouts();
|
|
946
944
|
if (doReload) shouldClientHardReload = true;
|
|
947
945
|
}
|
|
948
946
|
{
|