mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
Replace require with import
This commit is contained in:
@@ -26,7 +26,7 @@ var config = {
|
||||
}
|
||||
}
|
||||
var apiConfig = {}
|
||||
exports.setConf = function (c) {
|
||||
export const setConf = function (c) {
|
||||
apiConfig = c
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ function renderLines (svg, commit, direction, branchColor) {
|
||||
}
|
||||
}
|
||||
|
||||
exports.draw = function (txt, id, ver) {
|
||||
export const draw = function (txt, id, ver) {
|
||||
try {
|
||||
var parser
|
||||
parser = gitGraphParser.parser
|
||||
|
Reference in New Issue
Block a user