Skip to content

Commit 5b77280

Browse files
Primajinianschmitz
authored andcommittedMar 11, 2019
Make compiler variable const instead of let (#6621)
compiler is not being reassigned, so we can use a const here
1 parent 1a04b96 commit 5b77280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎packages/react-scripts/scripts/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ checkBrowsers(paths.appPath, isInteractive)
143143
function build(previousFileSizes) {
144144
console.log('Creating an optimized production build...');
145145

146-
let compiler = webpack(config);
146+
const compiler = webpack(config);
147147
return new Promise((resolve, reject) => {
148148
compiler.run((err, stats) => {
149149
let messages;

0 commit comments

Comments
 (0)
Please sign in to comment.