We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2022e5e commit f9c7f54Copy full SHA for f9c7f54
lib/get-exports.js
@@ -50,7 +50,7 @@ function resolvePackageImports (specifier, fromUrl) {
50
51
// Look for path inside packageJson
52
let resolvedExport
53
- if (typeof imports === 'object') {
+ if (imports && typeof imports === 'object') {
54
const requireExport = imports.require
55
const importExport = imports.import
56
// look for the possibility of require and import which is standard for CJS/ESM
0 commit comments