Skip to content

Commit

Permalink
Update index.js Refactor code to use import statements for module loa…
Browse files Browse the repository at this point in the history
…ding.

Refactored the code to use modern module syntax. Replaced require statements with import statements, enhancing code compatibility with contemporary standards and improving readability.
  • Loading branch information
letohx authored Oct 16, 2023
1 parent 7eac75c commit 8995924
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/webpack/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-console */
const mermaid = require('mermaid');
import mermaid from 'mermaid';
import mindmap from '@mermaid-js/mermaid-mindmap';

const render = async (graph) => {
Expand Down

0 comments on commit 8995924

Please sign in to comment.