Skip to content

engines field is not correct for 3.x #135

Description

@alexander-akait

engines is https://github.com/jshttp/mime-types/blob/master/package.json#L37

But in code we have:

 if (
    exports.types[extension] !== 'application/octet-stream' &&
    (score0 > score1 ||
      (score0 === score1 &&
        exports.types[extension]?.slice(0, 12) === 'application/'))
  ) {
    return type0
  }

https://github.com/jshttp/mime-types/blob/master/index.js#L201C2-L208C4

Optional chaining is not available in Node.js@0.6

Ref: webpack/webpack#19366

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions