From c097f349821242aedd9bc4118f22c8610a07ffd1 Mon Sep 17 00:00:00 2001
From: Albert Salim <asalim@gitlab.com>
Date: Fri, 29 Jan 2021 04:15:20 +0000
Subject: [PATCH] Fix failure in qa-frontend-node:10

---
 config/helpers/incremental_webpack_compiler.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/config/helpers/incremental_webpack_compiler.js b/config/helpers/incremental_webpack_compiler.js
index 9af52248d02d4..bdf77f750b728 100644
--- a/config/helpers/incremental_webpack_compiler.js
+++ b/config/helpers/incremental_webpack_compiler.js
@@ -8,7 +8,9 @@ const log = (msg, ...rest) => console.log(`IncrementalWebpackCompiler: ${msg}`,
 const TIMEOUT = 5000;
 
 class NoopCompiler {
-  enabled = false;
+  constructor() {
+    this.enabled = false
+  }
 
   filterEntryPoints(entryPoints) {
     return entryPoints;
@@ -20,8 +22,6 @@ class NoopCompiler {
 }
 
 class IncrementalWebpackCompiler extends NoopCompiler {
-  enabled = true;
-
   constructor(historyFilePath) {
     super();
     this.history = {};
@@ -33,6 +33,7 @@ class IncrementalWebpackCompiler extends NoopCompiler {
     ]);
     this.historyFilePath = historyFilePath;
     this.loadFromHistory();
+    this.enabled = true;
   }
 
   filterEntryPoints(entrypoints) {
-- 
GitLab