summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/src/utils.ts
diff options
context:
space:
mode:
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);
}