Astro’s Go + WASM compiler.
⚠️ Currently in beta!
npm install @astrojs/compiler
Note: API will change before 1.0! Use at your own discretion.
import { transform } from '@astrojs/compiler';
const result = await transform(source, {
site: 'https://mysite.dev',
sourcefile: '/Users/astro/Code/project/src/pages/index.astro',
sourcemap: 'both',
internalURL: 'astro/internal',
});
$ claude mcp add compiler \
-- python -m otcore.mcp_server <graph>