~/talk

Does your NPM package run at Edge?

Talkat CityJS Athens 2023 · on Tuesday, 2023-05-30· [javascript, nodejs]
links:none on file
slides:none on file

Demonstrates that an NPM package can run on Node, Cloudflare Workers, Vercel Edge Runtime and Deno by using conditional exports and subpath imports to provide runtime-specific entry points (one folder per runtime) while avoiding default exports and the dual package hazard; shows Clerk’s auth library compiled once to run in browser, Node and Edge, polyfilling fetch with node_fetch/native (node-fetch has ~5M daily downloads) and using WinterCG API keys to keep behavior consistent.

AI-written summary · about

  1. 0:00Introduction
  2. 7:30ESM modules evolution
  3. 11:24JavaScript runtimes today
  4. 14:12Building for all runtimes
  5. 17:41Edge compatibility solutions
~/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.