make component resources a proper emitter

This commit is contained in:
Jacky Zhao 2023-07-23 18:20:43 -07:00
parent 236ba56be1
commit 4811500b1b
7 changed files with 163 additions and 177 deletions

View file

@ -82,8 +82,8 @@ const BuildArgv = {
bundleInfo: {
boolean: true,
default: false,
describe: "show detailed bundle information"
}
describe: "show detailed bundle information",
},
}
function escapePath(fp) {
@ -351,9 +351,9 @@ See the [documentation](https://quartz.jzhao.xyz) for how to get started.
console.log(
`Successfully transpiled ${Object.keys(meta.inputs).length} files (${prettyBytes(
meta.bytes,
)})`)
console.log(await esbuild.analyzeMetafile(result.metafile, { color: true })
)})`,
)
console.log(await esbuild.analyzeMetafile(result.metafile, { color: true }))
}
const { default: buildQuartz } = await import(cacheFile)