Skip to content

Commit 68921c5

Browse files
committed
Name the export
The exported function is now a named function declaration instead of an anonymous arrow function.
1 parent b150165 commit 68921c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
module.exports = async ({ markdownAST, markdownNode }, options) => {
3+
async function gatsbyRemarkMermaid({ markdownAST, markdownNode }, options) {
44
const { VFile } = await import('vfile')
55
const { default: plugin } = await import('remark-mermaidjs')
66

@@ -11,3 +11,5 @@ module.exports = async ({ markdownAST, markdownNode }, options) => {
1111
const transformer = plugin(options)
1212
await transformer(markdownAST, vfile)
1313
}
14+
15+
module.exports = gatsbyRemarkMermaid

0 commit comments

Comments
 (0)