mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
20 lines
446 B
JavaScript
20 lines
446 B
JavaScript
|
import { mdxAnnotations } from 'mdx-annotations'
|
||
|
import recmaNextjsStaticProps from 'recma-nextjs-static-props'
|
||
|
|
||
|
function recmaRemoveNamedExports() {
|
||
|
return (tree) => {
|
||
|
tree.body = tree.body.map((node) => {
|
||
|
if (node.type === 'ExportNamedDeclaration') {
|
||
|
return node.declaration
|
||
|
}
|
||
|
return node
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export const recmaPlugins = [
|
||
|
mdxAnnotations.recma,
|
||
|
recmaRemoveNamedExports,
|
||
|
recmaNextjsStaticProps,
|
||
|
]
|