elegance-js 1.11.15 → 1.11.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.
- package/dist/page_compiler.mjs +2 -1
- package/package.json +1 -1
package/dist/page_compiler.mjs
CHANGED
|
@@ -687,9 +687,10 @@ var buildPage = async (DIST_DIR2, directory, filePath, name) => {
|
|
|
687
687
|
pageElements = page;
|
|
688
688
|
metadata = pageMetadata;
|
|
689
689
|
if (isDynamicPage === true) {
|
|
690
|
+
const parsed = path.parse(filePath);
|
|
690
691
|
await esbuild.build({
|
|
691
692
|
entryPoints: [filePath],
|
|
692
|
-
outfile: path.
|
|
693
|
+
outfile: path.join(parsed.dir, parsed.name + ".cjs"),
|
|
693
694
|
// necessary because we're mutilating the original
|
|
694
695
|
allowOverwrite: true,
|
|
695
696
|
// dont bundle because the origina build handles moduleresolution
|