Skip to content

Commit

Permalink
Use import instead of require
Browse files Browse the repository at this point in the history
  • Loading branch information
candrews committed Dec 13, 2021
1 parent 55bf722 commit 135b622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/docusaurus.config.js
Expand Up @@ -83,7 +83,7 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
remarkPlugins: [require('mdx-mermaid')],
remarkPlugins: [import('mdx-mermaid')],
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -31,7 +31,7 @@ Update `docusaurus.config.js`
'@docusaurus/preset-classic',
{
docs: {
remarkPlugins: [require('mdx-mermaid')],
remarkPlugins: [import('mdx-mermaid')],
```
Use code blocks in `.md` or `.mdx` files:
Expand Down

0 comments on commit 135b622

Please sign in to comment.