Browse Source

added v8-compile-cache

Eugene Pankov 4 years ago
parent
commit
90e56e7605
6 changed files with 10 additions and 0 deletions
  1. 1 0
      app/lib/index.ts
  2. 1 0
      app/package.json
  3. 1 0
      app/src/entry.preload.ts
  4. 1 0
      app/webpack.config.js
  5. 1 0
      app/webpack.main.config.js
  6. 5 0
      app/yarn.lock

+ 1 - 0
app/lib/index.ts

@@ -1,3 +1,4 @@
+import 'v8-compile-cache'
 import './portable'
 import 'source-map-support/register'
 import './sentry'

+ 1 - 0
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": {

+ 1 - 0
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'

+ 1 - 0
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',

+ 1 - 0
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',

+ 5 - 0
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"