mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Replace browserify/uglify-js with webpack, shrink markdownlint-browser.js (fixes #362).
This commit is contained in:
parent
202b50060b
commit
369b0b5934
10 changed files with 844 additions and 3271 deletions
|
@ -853,7 +853,7 @@ function markdownlint(options, callback) {
|
|||
return lintInput(options, false, callback);
|
||||
}
|
||||
|
||||
const markdownlintPromisify = promisify(markdownlint);
|
||||
const markdownlintPromisify = promisify && promisify(markdownlint);
|
||||
|
||||
/**
|
||||
* Lint specified Markdown files.
|
||||
|
@ -985,7 +985,7 @@ function readConfig(file, parsers, callback) {
|
|||
});
|
||||
}
|
||||
|
||||
const readConfigPromisify = promisify(readConfig);
|
||||
const readConfigPromisify = promisify && promisify(readConfig);
|
||||
|
||||
/**
|
||||
* Read specified configuration file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue