Skip to content

Conversation

@cometkim
Copy link
Member

@cometkim cometkim commented Dec 29, 2025

both for bsb and rewatch

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 29, 2025

Open in StackBlitz

rescript

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

@rescript/darwin-arm64

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

@rescript/darwin-x64

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

@rescript/linux-arm64

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

@rescript/linux-x64

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

@rescript/runtime

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

@rescript/win32-x64

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

commit: 9ef1dc2

@nojaf
Copy link
Member

nojaf commented Dec 29, 2025

it is already in rewatch

Did you check? Or are you just assuming?

@cometkim
Copy link
Member Author

Isn't it? I'm relying on my memory, but I'm aware that esmodule became the default somewhere.

@cometkim
Copy link
Member Author

anyway, let's make it true.

@nojaf
Copy link
Member

nojaf commented Dec 29, 2025

I would like you to check what rewatch actually does.

@nojaf
Copy link
Member

nojaf commented Dec 30, 2025

Also, isn't changing defaults a breaking change?
If users did not specify anything in there rescript.json, won't the output be different?

@cometkim
Copy link
Member Author

Now it is

@cometkim
Copy link
Member Author

This was scheduled to be included in the v12 release, but was missed. It may be delayed until v13.

@zth
Copy link
Member

zth commented Dec 30, 2025

If it goes into 12.1 and not a patch release, it should be fine I think.

CHANGELOG.md Outdated

#### :boom: Breaking Change

- Output format is `esmoule` by default. https://github.com/rescript-lang/rescript/pull/8128
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
- Output format is `esmoule` by default. https://github.com/rescript-lang/rescript/pull/8128
- Output format is `esmodule` by default. https://github.com/rescript-lang/rescript/pull/8128

@cknitt
Copy link
Member

cknitt commented Dec 30, 2025

If it goes into 12.1 and not a patch release, it should be fine I think.

Yes, and master is on 12.1 now, so that's fine.

@nojaf
Copy link
Member

nojaf commented Dec 30, 2025

This was scheduled to be included in the v12 release, but was missed. It may be delayed until v13.

Do you have any links to where that was decided?

I'm on board with the change, but the timing is off-putting. It's bizarre that this never came up during all those rewatch changes. I do find a breaking change in a minor release kind of sacrilegious, though.

@cometkim
Copy link
Member Author

I put that comment in #6709

I do find a breaking change in a minor release kind of sacrilegious, though.

And I agree with your thought.

This reverts commit 0cf6f3d.
@cometkim
Copy link
Member Author

We don't need to rush. It's enough if this isn't forgotten and is included in the next major release.

@cknitt
Copy link
Member

cknitt commented Dec 30, 2025

Also fine with me 🙂, then I'll assign it to the v13 milestone.

@cknitt cknitt added this to the v13 milestone Dec 30, 2025
@cometkim
Copy link
Member Author

shoud be rebased into #8130

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.

5 participants