Skip to content

Migrate to v13 - #1320

Draft
aspeddro wants to merge 1 commit into
rescript-lang:masterfrom
aspeddro:testing-v13
Draft

Migrate to v13#1320
aspeddro wants to merge 1 commit into
rescript-lang:masterfrom
aspeddro:testing-v13

Conversation

@aspeddro

Copy link
Copy Markdown
Collaborator

This branch was created to test the experimental server rescript-lang/rescript#8425

@aspeddro aspeddro self-assigned this Jul 26, 2026
@fhammerschmidt
fhammerschmidt marked this pull request as ready for review July 27, 2026 10:47
@fhammerschmidt

Copy link
Copy Markdown
Member

oops

@fhammerschmidt
fhammerschmidt marked this pull request as draft July 27, 2026 10:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f168802652

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +142 to +143
@scope("globalThis")
external filename: option<string> = "__filename"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Do not read __filename from globalThis

In Node CommonJS, __filename is injected as a module-local binding rather than exposed as globalThis.__filename; in ESM it is absent entirely. Consequently, this example always takes the None branch even in CommonJS, incorrectly reporting a non-Node environment. Use an actual global object property for this example or explain that module-local identifiers cannot be accessed through globalThis.

Useful? React with 👍 / 👎.

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