From 1e570f39a933ae09e17844dd739d69d25ae9074f Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Wed, 7 Jun 2023 08:03:49 +0900 Subject: [PATCH] Remove `v8-compile-cache` (#6907) `v8-compile-cache` no longer has performance benefits on Node.js 20. --- .changeset/early-dodos-invent.md | 5 +++++ bin/stylelint.js | 3 --- package-lock.json | 11 ----------- package.json | 1 - 4 files changed, 5 insertions(+), 15 deletions(-) create mode 100644 .changeset/early-dodos-invent.md diff --git a/.changeset/early-dodos-invent.md b/.changeset/early-dodos-invent.md new file mode 100644 index 0000000000..d93af97397 --- /dev/null +++ b/.changeset/early-dodos-invent.md @@ -0,0 +1,5 @@ +--- +"stylelint": patch +--- + +Fixed: remove `v8-compile-cache` diff --git a/bin/stylelint.js b/bin/stylelint.js index a30be6c7b7..fd2adeb799 100755 --- a/bin/stylelint.js +++ b/bin/stylelint.js @@ -2,7 +2,4 @@ '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-lock.json b/package-lock.json index 8bb661b38a..3719ae9313 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,7 +49,6 @@ "supports-hyperlinks": "^3.0.0", "svg-tags": "^1.0.0", "table": "^6.8.1", - "v8-compile-cache": "^2.3.0", "write-file-atomic": "^5.0.1" }, "bin": { @@ -13733,11 +13732,6 @@ "node": ">=6" } }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==" - }, "node_modules/v8-to-istanbul": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", @@ -24321,11 +24315,6 @@ } } }, - "v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==" - }, "v8-to-istanbul": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", diff --git a/package.json b/package.json index 73f45d6b82..387aef7f62 100644 --- a/package.json +++ b/package.json @@ -152,7 +152,6 @@ "supports-hyperlinks": "^3.0.0", "svg-tags": "^1.0.0", "table": "^6.8.1", - "v8-compile-cache": "^2.3.0", "write-file-atomic": "^5.0.1" }, "devDependencies": {