mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-06-18 12:14:30 +08:00
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:
2
packages/react-scripts/scripts/build.js
vendored
2
packages/react-scripts/scripts/build.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user