Skip to content

Commit 28189c5

Browse files
committed
fix: remove object has own check
1 parent 161c7cc commit 28189c5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/utils/resolve.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,7 @@ function fullResolve(
143143
return { found: true, path: cachedPath }
144144
}
145145

146-
if (
147-
Object.prototype.hasOwnProperty.call(settings, 'import-x/resolver-next') &&
148-
settings['import-x/resolver-next']
149-
) {
146+
if (settings['import-x/resolver-next']) {
150147
const configResolvers = settings['import-x/resolver-next']
151148

152149
for (let i = 0, len = configResolvers.length; i < len; i++) {
@@ -174,7 +171,6 @@ function fullResolve(
174171
}
175172
} else if (
176173
// backward compatibility for very old `import-x/resolve` options that is no longer supported
177-
Object.prototype.hasOwnProperty.call(settings, 'import-x/resolve') &&
178174
settings['import-x/resolve']
179175
) {
180176
const resolveSettings = settings['import-x/resolve']

0 commit comments

Comments
 (0)