File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,14 @@ The LanguageService will not track any mutations for already-initialized variabl
105
105
106
106
## Changelog:
107
107
108
+ ** v1.0.32** :
109
+
110
+ - Parsing package.json files will now skip browser fields if it contains multiple paths.
111
+
112
+ ** v1.0.31** :
113
+
114
+ - Fixed a bug with the previous version.
115
+
108
116
** v1.0.30** :
109
117
110
118
- Fixed a bug with the previous version.
Original file line number Diff line number Diff line change @@ -151,7 +151,8 @@ export abstract class ModuleFormatter implements IModuleFormatter {
151
151
152
152
for ( const field of fields ) {
153
153
const value = json [ field ] ;
154
- if ( value != null ) return join ( packageJSONPath , "../" , value ) ;
154
+ // The "browser" field may be an object of nested paths. Skip if that is the case.
155
+ if ( value != null && typeof value === "string" ) return join ( packageJSONPath , "../" , value ) ;
155
156
}
156
157
157
158
return null ;
You can’t perform that action at this time.
0 commit comments