From 5b77280dad0ebedb71b89d904a8dbba52baee120 Mon Sep 17 00:00:00 2001 From: Jannis Hell Date: Mon, 11 Mar 2019 20:42:20 +0100 Subject: [PATCH] Make compiler variable const instead of let (#6621) compiler is not being reassigned, so we can use a const here --- packages/react-scripts/scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/build.js b/packages/react-scripts/scripts/build.js index 8cd1ad77..1803e260 100644 --- a/packages/react-scripts/scripts/build.js +++ b/packages/react-scripts/scripts/build.js @@ -143,7 +143,7 @@ checkBrowsers(paths.appPath, isInteractive) function build(previousFileSizes) { console.log('Creating an optimized production build...'); - let compiler = webpack(config); + const compiler = webpack(config); return new Promise((resolve, reject) => { compiler.run((err, stats) => { let messages;