From 0f79dc716cdb74e448443ca7a5005e750d3580f1 Mon Sep 17 00:00:00 2001 From: Ivan Kopeykin Date: Tue, 10 Sep 2019 16:45:07 +0300 Subject: [PATCH] feat: add v8-compile-cache --- bin/stylelint.js | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/stylelint.js b/bin/stylelint.js index 9d26798654..f38a7c7883 100755 --- a/bin/stylelint.js +++ b/bin/stylelint.js @@ -2,4 +2,7 @@ "use strict"; +// to use V8's code cache to speed up instantiation time +require("v8-compile-cache"); + require("../lib/cli")(process.argv.slice(2)); diff --git a/package.json b/package.json index 66cfb6bbfa..d399be55aa 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,8 @@ "style-search": "^0.1.0", "sugarss": "^2.0.0", "svg-tags": "^1.0.0", - "table": "^5.2.3" + "table": "^5.2.3", + "v8-compile-cache": "^2.1.0" }, "devDependencies": { "benchmark": "^2.1.4",