resolve-import
    Preparing search index...
    • Get the minimal set of conditions that can potentially produce different resolution values for a given imports or exports object from a package manifest.

      For example:

      {
      ".": [{"import":[{"types":"x.d.ts"},"x.mjs"], "require":"y.js"}]
      "./a": {"browser":{"require":"./a.js"}},
      "./b": {"browser":"./b.js"},
      "./c": {"require":{"browser":"./c.js"}}
      }

      would return:

      [
      ['import','types'],
      ['import'],
      ['require'],
      ['browser'],
      ['browser', 'require'],
      ]

      With the ['require', 'browser'] condition set omitted, as it is already covered by ['browser', 'require'].

      Condition ordering is arbitrary and not guaranteed to be consistent.

      Parameters

      Returns string[][]