pull/468/merge
nightwing 2017-11-23 23:25:59 +04:00
rodzic 52de469df3
commit c5a00fed69
2 zmienionych plików z 58523 dodań i 58519 usunięć

Wyświetl plik

@ -71,8 +71,11 @@ webpack({
}
var commentRe = /^(;)?(?:\s*(?:\/\/.+\n|\/\*(?:[^*]|\*(?!\/))*\*\/))+(?: *\n)?/gm;
changeFile(outputPath, function(src) {
return "// generated using packager/eslint.js"
return "// generated using packager/eslint.js\n"
+ src.replace(commentRe, "$1")
.replace('define("eslint", ', "define(");
.replace('define("eslint", ', "define(")
.replace(/^ {4,}/gm, function(indentation) {
return indentation.replace(indentation.length % 4 ? / {2}/g :/ {4}/g, "\t")
});
})
});

File diff suppressed because one or more lines are too long