I think astro is trying to create an SSR page when I call a function using CJS imports in the .astro frontmatter (it's locating this error in a chunks/dep-*.js file). Specifically I'm trying to resolve a tailwind config. Basic page that throws this error:
---
import type { Config } from 'tailwindcss'
import resolveConfig from 'tailwindcss/resolveConfig'
import tailwindConfig from '~/tailwind.config.cjs'
const { theme } = resolveConfig<Config>(tailwindConfig)
---
<div>Test</div>
Is this a bug or is there any way I need to prevent Astro from trying to parse this as SSR? I have output: 'static' in my config. Building works fine fwiw, this only happens when running dev.