瀏覽代碼

avoid including all of the util-decorators in the bundle

Eugene Pankov 4 年之前
父節點
當前提交
47dba5b52c

+ 1 - 1
tabby-settings/src/components/settingsTab.component.ts

@@ -1,6 +1,6 @@
 /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
 import * as yaml from 'js-yaml'
-import { debounce } from 'utils-decorators/dist/cjs'
+import { debounce } from 'utils-decorators/dist/esm/debounce/debounce'
 import { Component, Inject, Input, HostBinding, NgZone } from '@angular/core'
 import {
     ConfigService,

+ 1 - 1
tabby-settings/src/components/windowSettingsTab.component.ts

@@ -1,5 +1,5 @@
 /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
-import { debounce } from 'utils-decorators/dist/cjs'
+import { debounce } from 'utils-decorators/dist/esm/debounce/debounce'
 import { Component, Inject, NgZone, Optional } from '@angular/core'
 import {
     DockingService,

+ 1 - 1
tabby-terminal/src/components/appearanceSettingsTab.component.ts

@@ -1,6 +1,6 @@
 /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
 import { Observable, debounceTime, distinctUntilChanged, map } from 'rxjs'
-import { debounce } from 'utils-decorators/dist/cjs'
+import { debounce } from 'utils-decorators/dist/esm/debounce/debounce'
 
 import { Component } from '@angular/core'
 import { ConfigService, getCSSFontFamily, PlatformService } from 'tabby-core'

+ 1 - 0
webpack.plugin.config.js

@@ -130,6 +130,7 @@ module.exports = options => {
     }
     if (process.env.PLUGIN_BUNDLE_ANALYZER === options.name) {
         config.plugins.push(bundleAnalyzer)
+        config.cache = false
     }
     return config
 }