diff --git a/bin/eslint.js b/bin/eslint.js index b6b14d3a2ba..061e94767f0 100755 --- a/bin/eslint.js +++ b/bin/eslint.js @@ -9,6 +9,9 @@ "use strict"; +// to use V8's code cache to speed up instantiation time +require("v8-compile-cache"); + //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ diff --git a/package.json b/package.json index a1c3aa0d595..068b4e1858a 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,8 @@ "strip-ansi": "^5.2.0", "strip-json-comments": "^3.0.1", "table": "^5.2.3", - "text-table": "^0.2.0" + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" }, "devDependencies": { "@babel/core": "^7.4.3",