mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 23:39:50 +02:00
Replace require with import
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
* - Thanks to the grunticon project for some guidance
|
||||
* https://github.com/filamentgroup/grunticon
|
||||
*/
|
||||
import system from 'system'
|
||||
import fs from 'fs'
|
||||
import webpage from 'webpage'
|
||||
|
||||
window.phantom.onError = function (msg, trace) {
|
||||
var msgStack = ['PHANTOM ERROR: ' + msg]
|
||||
@@ -24,10 +27,6 @@ window.phantom.onError = function (msg, trace) {
|
||||
window.phantom.exit(1)
|
||||
}
|
||||
|
||||
var system = require('system')
|
||||
var fs = require('fs')
|
||||
var webpage = require('webpage')
|
||||
|
||||
var page = webpage.create()
|
||||
var files = system.args.slice(10, system.args.length)
|
||||
var width = system.args[8]
|
||||
|
Reference in New Issue
Block a user