From 84d91d77a0670b331ded885ded5b05852e215020 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Mon, 19 Aug 2024 21:58:24 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sarah Rainsberger --- .changeset/many-garlics-lick.md | 4 ++-- .changeset/perfect-fans-fly.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.changeset/many-garlics-lick.md b/.changeset/many-garlics-lick.md index f3bad515e4ec..12ac2dd7c38b 100644 --- a/.changeset/many-garlics-lick.md +++ b/.changeset/many-garlics-lick.md @@ -2,7 +2,7 @@ 'astro': major --- -Removes internal JSX handling as they are now handled by `@astrojs/mdx` directly. The below exports are also now removed: +Removes internal JSX handling and moves the responsibility to the `@astrojs/mdx` package directly. The following exports are also now removed: - `astro/jsx/babel.js` - `astro/jsx/component.js` @@ -11,4 +11,4 @@ Removes internal JSX handling as they are now handled by `@astrojs/mdx` directly - `astro/jsx/server.js` - `astro/jsx/transform-options.js` -Make sure to upgrade `@astrojs/mdx` to latest so that it doesn't rely on these entrypoints. +If your project includes `.mdx` files, you must upgrade `@astrojs/mdx` to the latest version so that it doesn't rely on these entrypoints to handle your JSX. diff --git a/.changeset/perfect-fans-fly.md b/.changeset/perfect-fans-fly.md index 50dd5ed9a65d..cdecf6fb1948 100644 --- a/.changeset/perfect-fans-fly.md +++ b/.changeset/perfect-fans-fly.md @@ -3,3 +3,5 @@ --- Updates adapter server entrypoint to use `@astrojs/mdx/server.js` + +This is an internal change. Handling JSX in your `.mdx` files has been moved from Astro internals and is now the responsibility of this integration. You should not notice a change in your project, and no update to your code is required.