Rstest is one the few (or only?) test framework integrates swc's istanbul coverage instrumentation plugin instead of re-transpiling with babel+istanbul.
Highly recommend @rspack_dev if your codes are based on legacy webpack and would like to migrate seamlessly. Completed my work's replacement - prod ~1000% faster, HMR avg > 300% and up to 1000%. The bigger thing is we had 0 regressions, configuration migration was seamless.
Feeling surreal this is really happening.
🚨🚨🚨 It's happening!!
If you'd like to know why RxJS 8 development halted about a year ago, this is why. Future versions of RxJS will align with and use native observables!
The journey to standardization (in different venues) has gone on for 10 years. There's a lot more to do now, but this is huge.
2
193
👏🏻 to @rspack_dev team for the work to support seamless webpack migration + performance boost. Launched dev beta for the internal app with rapack 1.1 and HMR gots more than 2x faster at minimum. (If anyone asks why no Turbopack, this isn't next.js app)
Dust off swc-plugin-coverage-instrument (npmjs.com/package/swc-plugin…), published a new version. This pkg prpvides instanbuljs-compatible coverage with @swc_rs . The latest version have a new `unstableExclude` option to allow glob pattern to exclude certain file from instrumentation.
Published a new version of woodpile (npmjs.com/package/woodpile), @swc_rs ast visitor in javascript. Fixed ast mutation, now `visit` returns mutated ast as js object.
Wrapping up my journey at Vercel and trying to go back to writing some more Typescript-y things. Still love Rust and hope to get back to some SWC work too.
3
348
Got the port of VS code's Blanché to @zeddotdev , if anyone want to minimal monochrome editor experience:
gist.github.com/kwonoj/96abc…
Having a reliable, isolated repro to bug report is one of the greatest way to help OSS maintainer for the OSS you use / like. Also, it'll help you as well as maintainers are likely can pick up the issue easier / faster.
This is the first time I tried to use node.js's built in test runner, not a bad out of the box experience. I'd use other runners still for the complicated setups, but for the small things this would be useful. Not able to use @wallabyjs is one bad thing.
1
512
Releasing woodpile, a utility library for @swc_rs to walk its AST in JavaScript. A thin layer to SWC's internal rust visitor so can have the same behavior as it. Useful for quick traverse, or duck-type poc Wasm plugin.
github.com/kwonoj/woodpile
Do you know @swc_rs have an existing JS api for its ecma parser? Have you used over other parsers like acorn, babel-parser? If you choose other parser instead, any reasons?
44%Didn't know parser exists
22%Yes, used / will use it
33%No, didn't work for me
9 votes • Final results 1
304
And here's @swc_rs gh discussion if anyone want to leave more comments: github.com/swc-project/swc/d…
140
Turbopack gets @swc_rs wasm plugin support: github.com/vercel/next.js/re…
This took longer than I expected and some small glitches, but core features are working.
A proof of concept demo plugin for @swc_rs that compile-time evaluates some codes:
github.com/kwonoj/swc-plugin…
turns "const x = preeval`1+1`;" to "const x = 2;", backed by @boa_engine . This is nowhere close to prod though - a dirty demo swc plugin can potentially embed js engine.
Sort of my "endgame" setup with @kinesisergo for a while, debating trackball setup though. I chose Durock Smokey L7 Ultralight Linear via @UpgradeKB , and highly satisfied with it - I enjoyed the usual lightweight cherry red, silver and this one is so far my favorite.
2
3
376
connortumbleson.com/2022/11/…
The things I learned are also similar. Adding new features is *very expensive* for long-term project support: I get a question 'This is a small feature, why it's not in core?' bit frequently.










