summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/src/index.ts
diff options
context:
space:
mode:
authorGravatar bholmesdev <bholmesdev@users.noreply.github.com> 2022-09-26 22:25:48 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-09-26 22:25:48 +0000
commit1dc651d74efce7e06f25d149692f891710e103f7 (patch)
treef8ec9d4993fb8a316b67af757ac965d24e063b49 /packages/integrations/mdx/src/index.ts
parent58a2dca2286cb14f6211cf51267c02447e78433a (diff)
downloadastro-1dc651d74efce7e06f25d149692f891710e103f7.tar.gz
astro-1dc651d74efce7e06f25d149692f891710e103f7.tar.zst
astro-1dc651d74efce7e06f25d149692f891710e103f7.zip
[ci] format
Diffstat (limited to 'packages/integrations/mdx/src/index.ts')
-rw-r--r--packages/integrations/mdx/src/index.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/integrations/mdx/src/index.ts b/packages/integrations/mdx/src/index.ts
index 8909c8cae..de72e40f1 100644
--- a/packages/integrations/mdx/src/index.ts
+++ b/packages/integrations/mdx/src/index.ts
@@ -1,19 +1,19 @@
-import type { AstroIntegration } from 'astro';
-import type { Plugin as VitePlugin } from 'vite';
import { compile as mdxCompile } from '@mdx-js/mdx';
+import { PluggableList } from '@mdx-js/mdx/lib/core.js';
import mdxPlugin, { Options as MdxRollupPluginOptions } from '@mdx-js/rollup';
+import type { AstroIntegration } from 'astro';
import { parse as parseESM } from 'es-module-lexer';
import { blue, bold } from 'kleur/colors';
-import { VFile } from 'vfile';
import fs from 'node:fs/promises';
-import { getFileInfo, handleExtendsNotSupported, parseFrontmatter } from './utils.js';
+import { VFile } from 'vfile';
+import type { Plugin as VitePlugin } from 'vite';
import {
- recmaInjectImportMetaEnvPlugin,
- rehypeApplyFrontmatterExport,
getRehypePlugins,
getRemarkPlugins,
+ recmaInjectImportMetaEnvPlugin,
+ rehypeApplyFrontmatterExport,
} from './plugins.js';
-import { PluggableList } from '@mdx-js/mdx/lib/core.js';
+import { getFileInfo, handleExtendsNotSupported, parseFrontmatter } from './utils.js';
const RAW_CONTENT_ERROR =
'MDX does not support rawContent()! If you need to read the Markdown contents to calculate values (ex. reading time), we suggest injecting frontmatter via remark plugins. Learn more on our docs: https://docs.astro.build/en/guides/integrations-guide/mdx/#inject-frontmatter-via-remark-or-rehype-plugins';