@astrojs/compiler to process synchronously.
github.com/ota-meshi/astrojs-compiler-sync
ota-meshi/astrojs-compiler-sync