Skip to content

fix: missing . in temp file which leads creating extensionless file - #146

Merged
byroot merged 1 commit into
rails:masterfrom
tomocrafter:fix-temp-file-extensions
Aug 12, 2026
Merged

fix: missing . in temp file which leads creating extensionless file#146
byroot merged 1 commit into
rails:masterfrom
tomocrafter:fix-temp-file-extensions

Conversation

@tomocrafter

Copy link
Copy Markdown
Contributor

I've encountered to an situation that this issue may introduce js error depends on runtime.
Since bun runtime will default to TS/TSX if extension is missing in passed file name, then it will incorrectly parse js file as ts file (normally, this wont and should make any difference but I also found an issue in bun's transpiler that it changes code's behavior).
https://github.com/oven-sh/bun/blob/e9e93244cb3fee8bc4d734e7a4f3f2883eb1bf4a/src/bun.js/ModuleLoader.zig#L1015-L1017

@byroot
byroot merged commit 6d9bc33 into rails:master Aug 12, 2026
10 of 17 checks passed
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