UNPKG

next-mdx-remote

Version:

utilities for loading mdx from any remote source as data, rather than as a local import

12 lines (11 loc) 289 B
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { remove } from 'unist-util-remove'; /** * remark plugin which removes all import and export statements */ export function removeImportsExportsPlugin() { return (tree) => remove(tree, 'mdxjsEsm'); }