阿卡琳
@magic_akari
Core member of @swc_rs |All opinions are my own |🦀
TypeScript's old behavior didn't match the ECMAScript specification. You can fix this by enabling verbatimModuleSyntax in your tsconfig.


Thank you @hardfist_1 for sponsoring me on @github. You can join them at my sponsors profile: github.com/sponsors/magic…

Today I learned: Did you assume the self-closing `/>` in JSX is a single, indivisible token? Actually, the following code is perfectly valid JSX

Today's JS tip: In classes, it's OK to use the string literal `"constructor"` for the constructor method — but computed properties like `["constructor"]` become regular class methods.
![magic_akari's tweet image. Today's JS tip: In classes, it's OK to use the string literal `"constructor"` for the constructor method — but computed properties like `["constructor"]` become regular class methods.](https://pbs.twimg.com/media/Gtt3TuuaQAIauxg.jpg)
Does Vue support `<script lang="ts-type-strip">` yet? I think it’s time we consider adding it!
🚀 Today's Cargo tip! 🦀 Missing `pnpm why` from your Node.js days? Add this to your .cargo/config.toml and run `cargo why <crate>` to trace why a crate is in your dependency tree! 🔍

Thank you @hardfist_1 for sponsoring me on @github. You can join them at my sponsors profile: github.com/sponsors/magic…

I can't believe method definitions needed Node 4 while getters were there since 0.10! Just verified it – MDN doesn't lie.



Rspack 1.4 will introduce Wasm build, allowing browser-based bundling in StackBlitz and other web environments. We have successfully run several cases and are actively working on remaining edge cases. Special thanks to @c_punisher and @Brooooook_lyn for making this possible❤️
FYI: In JavaScript, non-simple params (defaults/rest/destructuring) cause `arguments` to be unmapped.
