Skip to content

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

Open
tomocrafter wants to merge 1 commit intorails:masterfrom
tomocrafter:fix-temp-file-extensions
Open

fix: missing . in temp file which leads creating extensionless file#146
tomocrafter wants to merge 1 commit intorails:masterfrom
tomocrafter:fix-temp-file-extensions

Conversation

@tomocrafter
Copy link
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

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

Labels

None yet

1 participant