Replace require with import

This commit is contained in:
Tyler Long
2017-09-10 21:23:04 +08:00
parent c9442653e9
commit a7d79baf00
36 changed files with 693 additions and 838 deletions

View File

@@ -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