summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/src/utils.ts
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2022-12-22 16:13:46 -0500
committerGravatar GitHub <noreply@github.com> 2022-12-22 16:13:46 -0500
commita5ba4af79930145f4edf66d45cd40ddad045cc86 (patch)
tree3d74854cfa878e5671c170c59195130581af238d /packages/integrations/mdx/src/utils.ts
parent813576b39a01ed64decf5d4c97205c2a02ae492f (diff)
downloadastro-a5ba4af79930145f4edf66d45cd40ddad045cc86.tar.gz
astro-a5ba4af79930145f4edf66d45cd40ddad045cc86.tar.zst
astro-a5ba4af79930145f4edf66d45cd40ddad045cc86.zip
[MDX] Remove verbose migration logs (#5667)
* chore: remove markdown extends warnings * chore: changeset
Diffstat (limited to 'packages/integrations/mdx/src/utils.ts')
-rw-r--r--packages/integrations/mdx/src/utils.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/integrations/mdx/src/utils.ts b/packages/integrations/mdx/src/utils.ts
index e803dc300..516cfafb2 100644
--- a/packages/integrations/mdx/src/utils.ts
+++ b/packages/integrations/mdx/src/utils.ts
@@ -83,21 +83,7 @@ export function jsToTreeNode(
};
}
-// TODO: remove for 1.0
-export function handleExtendsNotSupported(pluginConfig: any) {
- if (
- typeof pluginConfig === 'object' &&
- pluginConfig !== null &&
- (pluginConfig as any).hasOwnProperty('extends')
- ) {
- throw new Error(
- `[MDX] The "extends" plugin option is no longer supported! Astro now extends your project's \`markdown\` plugin configuration by default. To customize this behavior, see the \`extendPlugins\` option instead: https://docs.astro.build/en/guides/integrations-guide/mdx/#extendplugins`
- );
- }
-}
-
// Following utils taken from `packages/astro/src/core/path.ts`:
-
export function isRelativePath(path: string) {
return startsWithDotDotSlash(path) || startsWithDotSlash(path);
}