elegance-js 2.0.6 → 2.0.8

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.
@@ -273,8 +273,8 @@ if (!globalThis.__SERVER_CURRENT_LAYOUT_ID__) globalThis.__SERVER_CURRENT_LAYOUT
273
273
  // src/page_compiler.ts
274
274
  var __filename = fileURLToPath(import.meta.url);
275
275
  var __dirname = path.dirname(__filename);
276
- registerLoader();
277
276
  setArcTsConfig(__dirname);
277
+ registerLoader();
278
278
  var packageDir = process.env.PACKAGE_PATH;
279
279
  if (packageDir === void 0) {
280
280
  packageDir = path.resolve(__dirname, "..");
@@ -863,7 +863,7 @@ var buildPage = async (DIST_DIR2, directory, filePath, name) => {
863
863
  const objectAttributes = getObjectAttributes();
864
864
  const layout = await fetchPageLayoutHTML(path.dirname(filePath));
865
865
  const foundObjectAttributes = await pageToHTML(
866
- path.dirname(path.join(DIST_DIR2, "dist", directory)),
866
+ path.dirname(path.join(DIST_DIR2, directory)),
867
867
  pageElements || body(),
868
868
  metadata ?? (() => head()),
869
869
  DIST_DIR2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elegance-js",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "Web-Framework",
5
5
  "type": "module",
6
6
  "bin": {