From 6152056f3469a2db0e1d5f885395f0892a8d84c1 Mon Sep 17 00:00:00 2001 From: sanyuan <494130947@qq.com> Date: Thu, 15 Sep 2022 13:22:56 +0800 Subject: [PATCH] fix: delete createMDXOptions --- src/node/plugin.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index fb622867..d6d4e079 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -4,7 +4,7 @@ import { pluginSvgr } from './plugin-svgr'; import { pluginIsland } from './plugin-island'; import { pluginRoutes } from './plugin-routes'; import { SiteConfig } from '../shared/types'; -import { createMDXOptions, pluginMdx } from './plugin-mdx'; +import { pluginMdx } from './plugin-mdx'; import babelPluginIsland from './babel-plugin-island'; import { ISLAND_JSX_RUNTIME_PATH } from './constants/index'; @@ -13,7 +13,6 @@ export async function createIslandPlugins( isServer: boolean = false, restartServer?: () => Promise ): Promise { - const mdxOptions = await createMDXOptions(); return [ // For island internal use pluginIsland(config, isServer, restartServer), @@ -28,7 +27,7 @@ export async function createIslandPlugins( // Svg component support pluginSvgr(), // Md(x) compile - pluginMdx(), + pluginMdx(config), // Conventional Route pluginRoutes({ prefix: '', root: config.root }) ];