Skip to content

Commit 39d6eb2

Browse files
committed
fix: skip esbuild hash transform during toJSON() article discovery
1 parent 9d10117 commit 39d6eb2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

11ty/esbuild.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default async function (eleventyConfig: UserConfig): Promise<void> {
1818
)
1919

2020
eleventyConfig.addTransform('esbuild-translate-hashes', function (content) {
21+
if (!hashes) return content
2122
return translateHashes(this.page.inputPath, this.page.url, hashes, content) ?? content
2223
})
2324

0 commit comments

Comments
 (0)