Skip to content

Commit

Permalink
refactor(mdx): add entrypoint as full path file (#12533)
Browse files Browse the repository at this point in the history
Co-authored-by: Princesseuh <[email protected]>
  • Loading branch information
ematipico and Princesseuh authored Nov 26, 2024
1 parent cb9322c commit 1b61fdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/young-terms-hammer.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion packages/integrations/mdx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 1b61fdf

Please sign in to comment.