Skip to content

[Bug]: Babel 7.22 contains "type": "script" in package.json, which is invalid #15664

@devongovett

Description

@devongovett

💻

  • Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

N/A

Configuration file name

No response

Configuration

No response

Current and expected behavior

For example: https://unpkg.com/browse/@babel/[email protected]/lib/package.json

This currently breaks Parcel's new resolver, which I am going to fix by ignoring invalid values. parcel-bundler/parcel#9040

Still might be worth fixing though. Valid values for "type" are "module" and "commonjs" according to https://nodejs.org/api/packages.html#type.

Environment

N/A

Possible solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions