From 3a29f4c86ee7ed13fb8683b2728a856581e32de7 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 10 Jun 2023 02:58:58 +0000
Subject: [PATCH] add custom spa solution
---
quartz/bootstrap-cli.mjs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs
index e9cda4e..e6bb3f0 100755
--- a/quartz/bootstrap-cli.mjs
+++ b/quartz/bootstrap-cli.mjs
@@ -71,6 +71,10 @@
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,
--
Gitblit v1.10.0