@astrojs/starlight
Version:
Build beautiful, high-performance documentation websites with Astro
24 lines (21 loc) • 1.05 kB
JavaScript
/**
* @file This file is exported by Starlight as `@astrojs/starlight/expressive-code`.
*
* It is required by the `<Code>` component to access the same configuration preprocessor
* function as the one used by the integration.
*
* It also provides access to all of the Expressive Code classes and functions without having
* to install `astro-expressive-code` as an additional dependency into a user's project
* (and thereby risiking version conflicts).
*
* Note: This file is intentionally not a TypeScript module to allow access to all exported
* functionality even if TypeScript is not available, e.g. from the `ec.config.mjs` file
* that does not get processed by Vite.
*/
export * from 'astro-expressive-code';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - Types are provided by the separate `expressive-code.d.ts` file and this may not be
// a type error for some users running `tsc --noEmit` depending on their `tsconfig.json` settings.
export function defineEcConfig(config) {
return config;
}