diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs index e9cda4e0..e6bb3f0a 100755 --- a/quartz/bootstrap-cli.mjs +++ b/quartz/bootstrap-cli.mjs @@ -71,6 +71,10 @@ yargs(hideBin(process.argv)) setup(build) { build.onLoad({ filter: /\.inline\.(ts|js)$/ }, async (args) => { let text = await promises.readFile(args.path, 'utf8') + // remove default exports that we manually inserted + text = text.replace('export default', '') + text = text.replace('export', '') + const transpiled = await esbuild.build({ stdin: { contents: text, diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx index c56b8cbc..37c0abaa 100644 --- a/quartz/components/Head.tsx +++ b/quartz/components/Head.tsx @@ -9,7 +9,7 @@ export default function Head({ fileData, externalResources }: QuartzComponentPro const baseDir = resolveToRoot(slug) const iconPath = baseDir + "/static/icon.png" const ogImagePath = baseDir + "/static/og-image.png" - + return {title} @@ -24,7 +24,7 @@ export default function Head({ fileData, externalResources }: QuartzComponentPro - {css.map(href => )} - {js.filter(resource => resource.loadTime === "beforeDOMReady").map(resource =>