From eed2c85513588f8753b817d6e743c81b29665af9 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Thu, 23 Feb 2023 15:22:22 +0000 Subject: [PATCH] [ci] format --- packages/integrations/mdx/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/integrations/mdx/src/index.ts b/packages/integrations/mdx/src/index.ts index ecd7b7b43f..901ffb6bdd 100644 --- a/packages/integrations/mdx/src/index.ts +++ b/packages/integrations/mdx/src/index.ts @@ -112,13 +112,13 @@ export default function mdx(partialMdxOptions: Partial = {}): 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({