Skip to content

fix: Preserve/add "use strict" in a strict or module context - #92

Merged
kitten merged 10 commits into
mainfrom
@kitten/fix/preserve-module-strictness
Nov 6, 2026
Merged

kitten merged 10 commits into
mainfrom
@kitten/fix/preserve-module-strictness

Conversation

@kitten

@kitten kitten commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Summary

"use strict" pragmas weren't being added when they're missing but implied. This usually happens when the module, for any reason, is inferred to be an ESM module. This has been aligned with Metro's behaviour, so takes TS namespace exports and Flow transforms into account.

@kitten
kitten marked this pull request as ready for review November 5, 2026 20:53
@kitten kitten changed the title fix: Preserve/add "use strict" in a stract or module context fix: Preserve/add "use strict" in a strict or module context Nov 5, 2026
@kitten
kitten merged commit e44d3e1 into main Nov 6, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request Nov 6, 2026
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