elegance-js 2.0.14 → 2.0.16

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.
@@ -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 (DIST_DIR2) => {
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 hardReloadForPage = await buildLayout(filePath, directory);
717
- if (hardReloadForPage) {
718
- shouldClientHardReload = true;
719
- }
716
+ const builtLayout = await buildLayout(filePath, directory);
717
+ builtLayouts.set(filePath, 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(path.resolve(DIST_DIR));
943
+ const { shouldClientHardReload: doReload } = await buildLayouts();
946
944
  if (doReload) shouldClientHardReload = true;
947
945
  }
948
946
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elegance-js",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "Web-Framework",
5
5
  "type": "module",
6
6
  "bin": {