Skip to content

Conversation

@cometkim
Copy link
Member

es6 and es6-global were deprecated in favor of esmodule in #6709

We're printing the deprecation message for it. And it's good to go, as we announced in the CHANGELOG and the config documentation.

@cometkim cometkim requested review from nojaf and zth December 30, 2025 14:43
@cometkim cometkim mentioned this pull request Dec 30, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 30, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@8130

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@8130

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@8130

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@8130

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@8130

@rescript/runtime

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/runtime@8130

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@8130

commit: 4e46fe7

let lib_commonjs = lib_lit // "js"

let lib_es6_global = lib_lit // "es6_global"
let lib_esmodule = lib_lit // "es6"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let lib_esmodule = lib_lit // "es6"
let lib_esmodule = lib_lit // "esmodule"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's for the output path "lib/es6"

If we change this then it will be another breaking change which is huge

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right. It does look wrong/confusing though. Maybe leave the name lib_es6 and/or add a comment why we do not change this for now.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants