Skip to content

Commit

Permalink
fix: delete createMDXOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Sep 15, 2022
1 parent 235d4bc commit 6152056
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/node/plugin.ts
Expand Up @@ -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';

Expand All @@ -13,7 +13,6 @@ export async function createIslandPlugins(
isServer: boolean = false,
restartServer?: () => Promise<void>
): Promise<PluginOption[]> {
const mdxOptions = await createMDXOptions();
return [
// For island internal use
pluginIsland(config, isServer, restartServer),
Expand All @@ -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 })
];
Expand Down

0 comments on commit 6152056

Please sign in to comment.