~/talk

Babel: A refactoring tool

Talkat HolyJS 2020 Moscow · 2020-11-25..11-28· [javascript, developer-experience]
slides:none on file

Shows a working codemod that converts React class components into function components with hooks, parses class fields and initial state into useState calls, rewrites this.props and this.foo references, and injects React imports. Uses Babel APIs for AST transforms, AST Explorer for iterating, and printing/run-tools like recast and JSCodeshift. Runs on a TypeScript todoMVC app, produces many correct edits, emits warning comments for tricky patterns (refs, complex initializers) and leaves small manual fixes; the app still runs after fixes.

AI-written summary · about

  1. 0:00Start
  2. 1:48What Is Bubble
  3. 2:21A Customizable Javascript Compiler
  4. 3:14What Are Codemods
  5. 5:19How Are Codemods Different from Normal Compilers
  6. 9:50Regular Expressions
  7. 10:56Why Do You Choose Bubble
  8. 12:39Asd Explorer
  9. 14:47Anatomy of the Bubble Plugin
  10. 37:22Reverse Usage
  11. 41:05Shift Container
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.