UNPKG

@mintlify/common

Version:

Commonly shared code within Mintlify

8 lines (7 loc) 250 B
import { remove } from 'unist-util-remove'; import { isMdxJsEsm } from '../../utils.js'; export const remarkRemoveImports = () => (tree) => { remove(tree, (node) => { return isMdxJsEsm(node) && node.value.startsWith('import'); }); };