elegance-js 1.11.12 → 1.11.14
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/build.mjs +1 -1
- package/dist/compile_docs.mjs +1 -1
- package/dist/page_compiler.mjs +3 -0
- package/dist/server/server.mjs +1 -1
- package/package.json +1 -1
package/dist/build.mjs
CHANGED
|
@@ -723,7 +723,7 @@ async function handleStaticRequest(root, pathname, req, res, DIST_DIR) {
|
|
|
723
723
|
let isDynamic = false;
|
|
724
724
|
let handlerPath = filePath;
|
|
725
725
|
if (stats && stats.isDirectory()) {
|
|
726
|
-
const pageMjsPath = join(filePath, "page.
|
|
726
|
+
const pageMjsPath = join(filePath, "page.cjs");
|
|
727
727
|
try {
|
|
728
728
|
await fs2.access(pageMjsPath);
|
|
729
729
|
handlerPath = pageMjsPath;
|
package/dist/compile_docs.mjs
CHANGED
|
@@ -726,7 +726,7 @@ async function handleStaticRequest(root, pathname, req, res, DIST_DIR) {
|
|
|
726
726
|
let isDynamic = false;
|
|
727
727
|
let handlerPath = filePath;
|
|
728
728
|
if (stats && stats.isDirectory()) {
|
|
729
|
-
const pageMjsPath = join(filePath, "page.
|
|
729
|
+
const pageMjsPath = join(filePath, "page.cjs");
|
|
730
730
|
try {
|
|
731
731
|
await fs2.access(pageMjsPath);
|
|
732
732
|
handlerPath = pageMjsPath;
|
package/dist/page_compiler.mjs
CHANGED
|
@@ -690,6 +690,9 @@ var buildPage = async (DIST_DIR2, directory, filePath, name) => {
|
|
|
690
690
|
await esbuild.build({
|
|
691
691
|
entryPoints: [filePath],
|
|
692
692
|
outfile: filePath,
|
|
693
|
+
outExtension: {
|
|
694
|
+
".js": ".cjs"
|
|
695
|
+
},
|
|
693
696
|
// necessary because we're mutilating the original
|
|
694
697
|
allowOverwrite: true,
|
|
695
698
|
// dont bundle because the origina build handles moduleresolution
|
package/dist/server/server.mjs
CHANGED
|
@@ -715,7 +715,7 @@ async function handleStaticRequest(root, pathname, req, res, DIST_DIR) {
|
|
|
715
715
|
let isDynamic = false;
|
|
716
716
|
let handlerPath = filePath;
|
|
717
717
|
if (stats && stats.isDirectory()) {
|
|
718
|
-
const pageMjsPath = join(filePath, "page.
|
|
718
|
+
const pageMjsPath = join(filePath, "page.cjs");
|
|
719
719
|
try {
|
|
720
720
|
await fs2.access(pageMjsPath);
|
|
721
721
|
handlerPath = pageMjsPath;
|