←
Johnson Chu3,251 posts
Johnson Chu avatar

Johnson Chu

@johnsoncodehk

@vuejs core team member • Volar.js author - Supported by @stackblitz • Coffee Freedom Achiever

◷ Joined August 2018▧ 317 Photos and videos
Repojournal avatar
⟳ Johnson Chu retweeted
Repojournal@repojournal·Sep 16

create-vue 3.24.0 adds a tsgo option, letting you replace TypeScript with typescript-native-bridge. The version also clarifies that the overwrite prompt deletes all existing files. "fix: keep Ox" is where the Oxlint side of the changelog stops in what we can see. CI got less chatty too. The playground submodule now carries a private root package․json so pnpm 12 can verify dependencies without reinstalling and writing install progress to stderr during the Vitest job. create-vue-templates added a root manifest for pnpm dependency checks and holds a 3.24.0 version snapshot. Meanwhile the lock files got refreshed. #vuejs repojournal.com/showcase/vue…

Kevin Deng 🦋 @sxzz.dev avatar
⟳ Johnson Chu retweeted
Kevin Deng 🦋 @sxzz.dev@sanxiaozhizi·Nov 6

I wrote and solely maintain rolldown-plugin-dts. An @AnthropicAI engineer contributed two PRs using Claude Code. Meanwhile, Anthropic suddenly suspended my own Claude account—the tool I use to maintain that same project. The irony is hard to miss. 🧵 1/4

Johnson Chu avatar
Johnson Chu@johnsoncodehk·Nov 6

The crazy part is that replacing magic-string with muggle-string noticeably improved the Vue compiler’s performance, memory use, and source map accuracy. github.com/vuejs/core/pull/1…

Johnson Chu avatar
Johnson Chu@johnsoncodehk·Nov 2

I've sent a skill I put a lot of work into to every individual sponsor who has given over $200 in total, as a small thank-you. Check your email. 🎁

🚨BREAKING: Vue - Official Advanced Features are now free for everyone!

Post attachment
Vue.js Beginner avatar
⟳ Johnson Chu retweeted
Vue.js Beginner@vue_beginners·Nov 1

アクセシビリティかい!!!!! それなら vize/compiler で templateSyntaxMode: "strict" にしつつ. vize/linter で a11y のリントを有効にしまくって, vize/musea でストーリーを書いて axe-core でテストすれば自然にいい感じのマークアップが高速に書けるよ!!! vizejs.dev/rules/accessibili…

James Ross avatar
⟳ Johnson Chu retweeted
James Ross@CherryJimbo·Oct 28

42s → 8s → 5s Type-checking one of our Vue codebases (~1k files, ~200 SFCs): vue-tsc + TS6 → TS 7.1 → tsrs --fast TS 7.1 and tsrs run Vue through the new @vue/content-mapper alpha. I'm excited.

Post attachment

Vue Language Tools v4 alpha is out. TypeScript 7's own tsc now type-checks .vue files via @vue/content-mapper, no more vue-tsc. * Editor support isn't ready yet. github.com/vuejs/language-to…

Johnson Chu avatar
Johnson Chu@johnsoncodehk·Nov 1

muggle-string only appends edits and sorts them once at render. This avoids what magic-string pays for splitting chunks as each edit arrives and walking the chunk list to find each position when edits arrive out of order. The gap is widest out of order and narrows in order.

Post attachment
Johnson Chu avatar
Johnson Chu@johnsoncodehk·Nov 1

In language-tools v4, several modifiers edit the same code in an order no one can predict. muggle-string handles this in its API design: whichever of the 24 orders they run in, the output is the same.

Post attachment
Johnson Chu avatar
Johnson Chu@johnsoncodehk·Nov 1

Edits are recorded as offsets into the source; the original text is never split or copied. The pieces from one rewrite can be turned into Content Mapper mappings, or rendered as a v3 source map.

Post attachment
Johnson Chu avatar
Johnson Chu@johnsoncodehk·Oct 24

Thanks to content mappers, Volar.js v3 can drop about 40% of the v2 codebase (~8.7k LOC).

I find that a diagram makes it clearer. Simply put, I think Ember no longer needs Volar.js now!

Post attachment
Johnson Chu avatar
Johnson Chu@johnsoncodehk·Oct 23

Vue Language Tools v4 alpha is out. TypeScript 7's own tsc now type-checks .vue files via @vue/content-mapper, no more vue-tsc. * Editor support isn't ready yet. github.com/vuejs/language-to…