@normed/bundle 4.5.0 → 4.5.1
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/CHANGELOG.md +5 -0
- package/bundles/bin/cli.js +7 -4
- package/bundles/bin/cli.js.map +2 -2
- package/bundles/index.js +7 -4
- package/bundles/index.js.map +2 -2
- package/package.json +1 -1
package/bundles/index.js
CHANGED
|
@@ -69748,7 +69748,11 @@ var esbuilder = {
|
|
|
69748
69748
|
let transforms = [];
|
|
69749
69749
|
const oFM_result = currentOutputFilesMap.get(relativeFilePath);
|
|
69750
69750
|
if (oFM_result) {
|
|
69751
|
-
|
|
69751
|
+
if (oFM_result.entrypoint) {
|
|
69752
|
+
relativeTarget = oFM_result.entrypoint.outfile.relative;
|
|
69753
|
+
} else if (relativeFilePath.endsWith(".pug")) {
|
|
69754
|
+
relativeTarget = relativeFilePath.replace(/\.pug$/, ".html");
|
|
69755
|
+
}
|
|
69752
69756
|
oFM_result.present = true;
|
|
69753
69757
|
if (expectingSourcemap && oFM_result.mapFileExpected) {
|
|
69754
69758
|
}
|
|
@@ -69773,7 +69777,7 @@ var esbuilder = {
|
|
|
69773
69777
|
`Correcting output file name "${relativeFilePath}" to be "${relativeTarget}".`
|
|
69774
69778
|
);
|
|
69775
69779
|
}
|
|
69776
|
-
const isHtmlOutput =
|
|
69780
|
+
const isHtmlOutput = relativeTarget.endsWith(".html");
|
|
69777
69781
|
const sourcePath = oFM_result?.sourcePath;
|
|
69778
69782
|
if (isHtmlOutput && sourcePath) {
|
|
69779
69783
|
const pugRefs = discoveredPugReferences.get(sourcePath) || [];
|
|
@@ -69857,8 +69861,7 @@ var esbuilder = {
|
|
|
69857
69861
|
const discoveredOutputFilesMap = /* @__PURE__ */ new Map();
|
|
69858
69862
|
for (const pugSourcePath of newEntryPoints) {
|
|
69859
69863
|
const relativeSource = import_path7.default.relative(indir, pugSourcePath);
|
|
69860
|
-
|
|
69861
|
-
discoveredOutputFilesMap.set(expectedOutput, {
|
|
69864
|
+
discoveredOutputFilesMap.set(relativeSource, {
|
|
69862
69865
|
entrypoint: void 0,
|
|
69863
69866
|
sourcePath: pugSourcePath,
|
|
69864
69867
|
present: false,
|