@theTangentSpace@mathstodon.xyz
Post #1285488
2026-03-10 00:42 UTC
@nathanu @robb try changing the require() to an import statement and the module.exports to an export (maybe export default) statement
Replies (1)
-
@nathanu@lounge.town 2026-03-10 04:07
@theTangentSpace @robb I wound up having to do this: import childProcess from "child_process"; eleventyConfig.on("eleventy.after", () => { childProcess.execSync(`npx pagefind --site _site --glob "**/*.html"`, { encoding: "utf-8", }); });