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 9f54987 commit 9bf1443Copy full SHA for 9bf1443
src/node_modules.cc
@@ -160,9 +160,8 @@ const BindingData::PackageConfig* BindingData::GetPackageJSON(
160
return throw_invalid_package_config();
161
}
162
} else if (key == "main") {
163
- if (value.get_string(package_config.main)) {
164
- return throw_invalid_package_config();
165
- }
+ // Omit all non-string values
+ USE(value.get_string(package_config.main));
166
} else if (key == "exports") {
167
if (value.type().get(field_type)) {
168
0 commit comments