@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/node-esm-resolution",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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) => {