Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman authored Jun 22, 2022
1 parent fa6f535 commit 658e02b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? undefined : [createCompiler(options)] });

export const compileSync = (code: string, options?: MdxOptions) =>
mdx.sync(code, { compilers: options.skipCsf ? undefined : [createCompiler(options)] });
mdx.sync(code, { compilers: options?.skipCsf ? undefined : [createCompiler(options)] });

export * from './sb-mdx-plugin';

0 comments on commit 658e02b

Please sign in to comment.