[ci] format

This commit is contained in:
natemoo-re 2023-02-23 15:22:22 +00:00 committed by fredkbot
parent 075b87e8b7
commit eed2c85513

View file

@ -112,13 +112,13 @@ export default function mdx(partialMdxOptions: Partial<MdxOptions> = {}): AstroI
}
const { fileUrl, fileId } = getFileInfo(id, config);
if (!moduleExports.find(({n}) => n === 'url')) {
if (!moduleExports.find(({ n }) => n === 'url')) {
code += `\nexport const url = ${JSON.stringify(fileUrl)};`;
}
if (!moduleExports.find(({n}) => n === 'file')) {
if (!moduleExports.find(({ n }) => n === 'file')) {
code += `\nexport const file = ${JSON.stringify(fileId)};`;
}
if (!moduleExports.find(({n}) => n === 'Content')) {
if (!moduleExports.find(({ n }) => n === 'Content')) {
// Make `Content` the default export so we can wrap `MDXContent` and pass in `Fragment`
code = code.replace('export default MDXContent;', '');
code += `\nexport const Content = (props = {}) => MDXContent({