diff options
author | 2023-02-23 15:22:22 +0000 | |
---|---|---|
committer | 2023-02-23 15:22:22 +0000 | |
commit | eed2c85513588f8753b817d6e743c81b29665af9 (patch) | |
tree | ff241d37b5cac6d7aacf78c847c2f8f9bf68c809 | |
parent | 075b87e8b72a69a608cd2ff1196dc0989e2cf1e1 (diff) | |
download | astro-eed2c85513588f8753b817d6e743c81b29665af9.tar.gz astro-eed2c85513588f8753b817d6e743c81b29665af9.tar.zst astro-eed2c85513588f8753b817d6e743c81b29665af9.zip |
[ci] format
-rw-r--r-- | packages/integrations/mdx/src/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/integrations/mdx/src/index.ts b/packages/integrations/mdx/src/index.ts index ecd7b7b43..901ffb6bd 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<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({ |