Make compiler variable const instead of let (#6621)

compiler is not being reassigned, so we can use a const here
This commit is contained in:
Jannis Hell
2019-03-11 20:42:20 +01:00
committed by Ian Schmitz
parent 1a04b96795
commit 5b77280dad

View File

@@ -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;