0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

refactor(mdx): add entrypoint as full path file (#12533)

Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
This commit is contained in:
Emanuele Stoppa 2024-11-26 11:31:32 +00:00 committed by GitHub
parent cb9322c763
commit 1b61fdf038
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/mdx': patch
---
Fixes a case where the MDX renderer couldn't be loaded when used as a direct dependency of an Astro integration.

View file

@ -54,7 +54,7 @@ export default function mdx(partialMdxOptions: Partial<MdxOptions> = {}): AstroI
addRenderer({
name: 'astro:jsx',
serverEntrypoint: '@astrojs/mdx/server.js',
serverEntrypoint: new URL('../dist/server.js', import.meta.url),
});
addPageExtension('.mdx');
addContentEntryType({