Skip to content

Figure out why current yarn versions are compiled for ES5 #5627

@sth

Description

@sth

Since version 1.4.0, the yarn packages published on npm have their code compiled to ES5, instead of targeting node >= 5, as versions 1.0.0 through 1.3.2 did (I haven't checked older versions). At least it looks like that, features like "class A extends B ..." are now replaced by polyfills/.... This can lead to subtle bugs if the polyfills don't perfectly emulate the real features.

This doesn't seem to be intentional and the reasons are not clear. A normal yarn build still produces the expected code for node >5. It should be investigated why the published packages look differently.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions