From d8eade10f60e577182de5e3378222912a9283a79 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Tue, 16 May 2023 19:09:51 +0100 Subject: [PATCH] Update additional import --- packages/remix-dev/compiler/js/plugins/routes_unstable.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/remix-dev/compiler/js/plugins/routes_unstable.ts b/packages/remix-dev/compiler/js/plugins/routes_unstable.ts index 9916cc0dcf2..8adf4ce025d 100644 --- a/packages/remix-dev/compiler/js/plugins/routes_unstable.ts +++ b/packages/remix-dev/compiler/js/plugins/routes_unstable.ts @@ -78,8 +78,8 @@ export function browserRouteModulesPlugin( return { name: "browser-route-modules", async setup(build) { - let [xdm, { default: remarkFrontmatter }] = await Promise.all([ - import("xdm"), + let [mdx, { default: remarkFrontmatter }] = await Promise.all([ + import("@mdx-js/mdx"), import("remark-frontmatter") as any, ]); @@ -107,7 +107,7 @@ export function browserRouteModulesPlugin( if (/\.mdx?$/.test(file)) { let mdxResult = await processMDX( - xdm, + mdx, remarkFrontmatter, config, args.path,