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:
parent
cb9322c763
commit
1b61fdf038
2 changed files with 6 additions and 1 deletions
5
.changeset/young-terms-hammer.md
Normal file
5
.changeset/young-terms-hammer.md
Normal 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.
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue