Kaynağa Gözat

rename variable for clarity

Steven Silvester 4 yıl önce
ebeveyn
işleme
8cde0f1543
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      builder/src/webpack.config.ext.ts

+ 3 - 3
builder/src/webpack.config.ext.ts

@@ -172,13 +172,13 @@ class CleanupPlugin {
     compiler.hooks.done.tap('Cleanup', () => {
       // Find the remoteEntry file and add it to the package.json metadata
       const files = glob.sync(path.join(outputPath, 'remoteEntry.*.js'));
-      let bestTime = -1;
+      let newestTime = -1;
       let newestRemote = '';
       files.forEach(fpath => {
         const mtime = fs.statSync(fpath).mtime.getTime();
-        if (mtime > bestTime) {
+        if (mtime > newestTime) {
           newestRemote = fpath;
-          bestTime = mtime;
+          newestTime = mtime;
         }
       });
       const data = readJSONFile(path.join(outputPath, 'package.json'));