[ci] format
This commit is contained in:
parent
075b87e8b7
commit
eed2c85513
1 changed files with 3 additions and 3 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue