diff --git a/src/index.ts b/src/index.ts index 74b0f56..3f5139b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,9 +2,9 @@ import mdx from '@mdx-js/mdx'; import { createCompiler, MdxOptions } from './sb-mdx-plugin'; export const compile = async (code: string, options?: MdxOptions) => - mdx(code, { compilers: options?.skipCsf ? undefined : [createCompiler(options)] }); + mdx(code, { compilers: options?.skipCsf ? [] : [createCompiler(options)] }); export const compileSync = (code: string, options?: MdxOptions) => - mdx.sync(code, { compilers: options?.skipCsf ? undefined : [createCompiler(options)] }); + mdx.sync(code, { compilers: options?.skipCsf ? [] : [createCompiler(options)] }); export * from './sb-mdx-plugin';