astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
14 lines (13 loc) • 310 B
JavaScript
const VIRTUAL_MODULE_ID = "astro:container";
export default function astroContainer() {
return {
name: VIRTUAL_MODULE_ID,
enforce: "pre",
resolveId: {
filter: { id: new RegExp(`^(${VIRTUAL_MODULE_ID})$`) },
handler() {
return this.resolve("astro/virtual-modules/container.js");
}
}
};
}