Jacky Zhao
2023-06-10 3a29f4c86ee7ed13fb8683b2728a856581e32de7
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,