From 0f596d9173d0f1e14c4ac7e6058089ea87724099 Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Wed, 21 Feb 2018 20:54:18 -0600 Subject: Use const instead of let --- config/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/webpack.config.js') diff --git a/config/webpack.config.js b/config/webpack.config.js index 22a8d2bf382..94ff39485fb 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -30,9 +30,9 @@ var dispatcher = fs.readFileSync(path.join(ROOT_PATH, 'app/assets/javascripts/di var dispatcherChunks = dispatcher.match(/(?!import\(')\.\/pages\/[^']+/g); function generateAutoEntries(path, prefix = '.') { - let chunkPath = path.replace(/\/index\.js$/, ''); + const chunkPath = path.replace(/\/index\.js$/, ''); if (!dispatcherChunks.includes(`${prefix}/${chunkPath}`)) { - let chunkName = chunkPath.replace(/\//g, '.'); + const chunkName = chunkPath.replace(/\//g, '.'); autoEntries[chunkName] = `${prefix}/${path}`; } } -- cgit v1.2.1