diff options
Diffstat (limited to 'node_modules/webpack/lib/OptionsDefaulter.js')
-rw-r--r-- | node_modules/webpack/lib/OptionsDefaulter.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/webpack/lib/OptionsDefaulter.js b/node_modules/webpack/lib/OptionsDefaulter.js index ee681b5a9..42120689d 100644 --- a/node_modules/webpack/lib/OptionsDefaulter.js +++ b/node_modules/webpack/lib/OptionsDefaulter.js @@ -6,7 +6,7 @@ function getProperty(obj, name) {
name = name.split(".");
- for(var i = 0; i < name.length - 1; i++) {
+ for(let i = 0; i < name.length - 1; i++) {
obj = obj[name[i]];
if(typeof obj !== "object" || !obj) return;
}
@@ -15,7 +15,7 @@ function getProperty(obj, name) { function setProperty(obj, name, value) {
name = name.split(".");
- for(var i = 0; i < name.length - 1; i++) {
+ for(let i = 0; i < name.length - 1; i++) {
if(typeof obj[name[i]] !== "object" && typeof obj[name[i]] !== "undefined") return;
if(!obj[name[i]]) obj[name[i]] = {};
obj = obj[name[i]];
|