@@ -13,11 +13,11 @@ export default function resolve(value/* , currentConfig */) {
13
13
throw new Error ( `Configuration 'resolve' is not an object` ) ;
14
14
}
15
15
16
- if ( alias in value && ! isPlainObject ( value . alias ) ) {
16
+ if ( ' alias' in value && ! isPlainObject ( value . alias ) ) {
17
17
throw new Error ( `Configuration 'resolve.alias' is not an object` ) ;
18
18
}
19
19
20
- if ( extensions in value ) {
20
+ if ( ' extensions' in value ) {
21
21
if ( ! Array . isArray ( value . extensions ) ) {
22
22
throw new Error ( `Configuration 'resolve.extensions' is not an array` ) ;
23
23
}
@@ -29,7 +29,7 @@ export default function resolve(value/* , currentConfig */) {
29
29
} ) ;
30
30
}
31
31
32
- if ( modules in value ) {
32
+ if ( ' modules' in value ) {
33
33
if ( ! Array . isArray ( value . modules ) ) {
34
34
throw new Error ( `Configuration 'resolve.modules' is not an array` ) ;
35
35
}
@@ -41,11 +41,11 @@ export default function resolve(value/* , currentConfig */) {
41
41
} ) ;
42
42
}
43
43
44
- if ( mainFile in value && ! isString ( value . mainFile ) ) {
44
+ if ( ' mainFile' in value && ! isString ( value . mainFile ) ) {
45
45
throw new Error ( `Configuration 'resolve.mainFile' is not a string` ) ;
46
46
}
47
47
48
- if ( preserveSymlinks in value && ! isBoolean ( value . preserveSymlinks ) ) {
48
+ if ( ' preserveSymlinks' in value && ! isBoolean ( value . preserveSymlinks ) ) {
49
49
throw new Error ( `Configuration 'resolve.preserveSymlinks' is not a boolean` ) ;
50
50
}
51
51
0 commit comments