@jsenv/node-esm-resolution 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -771,6 +771,9 @@ const mainLegacyResolvers = {
|
|
|
771
771
|
if (typeof packageJson.jsnext === "string") {
|
|
772
772
|
return { type: "jsnext", path: packageJson.jsnext }
|
|
773
773
|
}
|
|
774
|
+
if (typeof packageJson.main === "string") {
|
|
775
|
+
return { type: "main", path: packageJson.main }
|
|
776
|
+
}
|
|
774
777
|
return null
|
|
775
778
|
},
|
|
776
779
|
browser: (packageJson, packageUrl) => {
|