quartz-research-note/quartz/bootstrap-worker.mjs

8 lines
198 B
JavaScript
Raw Normal View History

2023-06-04 12:35:45 -04:00
#!/usr/bin/env node
2023-07-22 17:27:41 -07:00
import workerpool from "workerpool"
2023-06-04 12:35:45 -04:00
const cacheFile = "./.quartz-cache/transpiled-worker.mjs"
const { parseFiles } = await import(cacheFile)
workerpool.worker({
2023-07-22 17:27:41 -07:00
parseFiles,
2023-06-04 12:35:45 -04:00
})