File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11import fs from 'fs'
22import path from 'path'
33import { StringDecoder } from 'string_decoder'
4- import remarkMdxFrontmatter from 'remark-mdx-frontmatter'
54import grayMatter from 'gray-matter'
65import * as esbuild from 'esbuild'
76import { NodeResolvePlugin } from '@esbuild-plugins/node-resolve'
@@ -38,8 +37,15 @@ async function bundleMDX({
3837
3938 // @mdx -js/esbuild is a native ESM, and we're running in a CJS context. This is the
4039 // only way to import ESM within CJS
41- const [ { default : mdxESBuild } , { default : remarkFrontmatter } ] =
42- await Promise . all ( [ import ( '@mdx-js/esbuild' ) , import ( 'remark-frontmatter' ) ] )
40+ const [
41+ { default : mdxESBuild } ,
42+ { default : remarkFrontmatter } ,
43+ { default : remarkMdxFrontmatter } ,
44+ ] = await Promise . all ( [
45+ import ( '@mdx-js/esbuild' ) ,
46+ import ( 'remark-frontmatter' ) ,
47+ import ( 'remark-mdx-frontmatter' ) ,
48+ ] )
4349
4450 let /** @type string */ code ,
4551 /** @type string */ entryPath ,
You can’t perform that action at this time.
0 commit comments