Skip to content

Crarify which versions support package.json:"type":"module" #33143

Description

@dilyanpalauzov

https://medium.com/@nodejs/announcing-core-node-js-support-for-ecmascript-modules-c5d6dc29b663 says that Node 13.2.0 is the first version to understand in package.json "type":"module". This was the reason I switched to Node 13.

Now https://nodejs.org/docs/latest-v12.x/api/esm.html#esm_package_json_type_field says that v12 supports this "type":"module" option.

Apparently this option is not valid for all Node v12 releases.

Please amend the documentation to state since which v12 and v13 releases this option is enabled, so that this information can be included in the package.json: "engines" field. Ideally also provide information how the engines field should look like.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions