diff --git a/app/lib/index.ts b/app/lib/index.ts index 80aee909..f4dd2009 100644 --- a/app/lib/index.ts +++ b/app/lib/index.ts @@ -1,3 +1,4 @@ +import 'v8-compile-cache' import './portable' import 'source-map-support/register' import './sentry' diff --git a/app/package.json b/app/package.json index 68828808..9ccb8319 100644 --- a/app/package.json +++ b/app/package.json @@ -30,6 +30,7 @@ "npm": "6", "rxjs": "^7.2.0", "source-map-support": "^0.5.19", + "v8-compile-cache": "^2.3.0", "yargs": "^17.0.1" }, "optionalDependencies": { diff --git a/app/src/entry.preload.ts b/app/src/entry.preload.ts index ff76ec64..98093172 100644 --- a/app/src/entry.preload.ts +++ b/app/src/entry.preload.ts @@ -1,3 +1,4 @@ +import 'v8-compile-cache' import '../lib/lru' import 'source-sans-pro/source-sans-pro.css' import 'source-code-pro/source-code-pro.css' diff --git a/app/webpack.config.js b/app/webpack.config.js index 89210b8c..5ce2ab94 100644 --- a/app/webpack.config.js +++ b/app/webpack.config.js @@ -61,6 +61,7 @@ module.exports = { }, externals: { '@electron/remote': 'commonjs @electron/remote', + 'v8-compile-cache': 'commonjs v8-compile-cache', child_process: 'commonjs child_process', electron: 'commonjs electron', fs: 'commonjs fs', diff --git a/app/webpack.main.config.js b/app/webpack.main.config.js index 5ec6a3dc..4c57b688 100644 --- a/app/webpack.main.config.js +++ b/app/webpack.main.config.js @@ -34,6 +34,7 @@ module.exports = { ], }, externals: { + 'v8-compile-cache': 'commonjs v8-compile-cache', 'any-promise': 'commonjs any-promise', electron: 'commonjs electron', 'electron-config': 'commonjs electron-config', diff --git a/app/yarn.lock b/app/yarn.lock index a2876d4a..abfd467d 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -3538,6 +3538,11 @@ uuid@^3.0.1, uuid@^3.3.2, uuid@^3.3.3: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== +v8-compile-cache@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" + integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== + validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz"