From f6daa0466806bab909de90fce0bc1b23d98d86fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Sat, 29 Jun 2019 19:23:31 +0800 Subject: [PATCH] Chore: add v8-compile-cache to speed up instantiation time (#47) --- lib/index.js | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index e9b2718..418d0a5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -4,6 +4,7 @@ */ "use strict"; +require("v8-compile-cache"); const all = require("./configs/all"); const recommended = require("./configs/recommended"); const unsafe = require("./configs/unsafe"); diff --git a/package.json b/package.json index 7c0b203..4865b8d 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "espree": "^5.0.1", "esutils": "^2.0.2", "lodash": "^4.17.11", - "string-similarity": "^3.0.0" + "string-similarity": "^3.0.0", + "v8-compile-cache": "^2.0.3" }, "devDependencies": { "@not-an-aardvark/node-release-script": "^0.1.0",