astro-ghostcms/.pnpm-store/v3/files/05/df18ebd457014b67707b78ead1e...

32 lines
593 B
Plaintext

import { extendManualChunks } from "./util.js";
function vitePluginChunks() {
return {
name: "astro:chunks",
outputOptions(outputOptions) {
extendManualChunks(outputOptions, {
after(id) {
if (id.includes("astro/dist/runtime/server/")) {
return "astro/server";
}
}
});
}
};
}
function pluginChunks() {
return {
targets: ["server"],
hooks: {
"build:before": () => {
return {
vitePlugin: vitePluginChunks()
};
}
}
};
}
export {
pluginChunks,
vitePluginChunks
};