/
githubmirror
/
tldraw
Обзор
Документация
Войти
/
githubmirror
/
tldraw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/scripts/lib/worker-externals.ts
27 строк
648 B
Mitja Bezenšek
chore: share the worker esbuild externals list between dev and CI scripts (#9557)
10 июл 2026, 13:51
Не верифицирован
10 июл 2026, 13:51
3f9cb5e
Код
Авторство
О чём код?
/** * Node builtins (and cloudflare modules) that must stay external when bundling a worker * entrypoint with esbuild. With nodejs_compat these resolve at runtime in workerd; esbuild just * needs to be told not to bundle them. Shared between the dev size reporter * (workers/dev.ts) and the CI bundle-size check (check-worker-bundle.ts) so the lists can't drift. */ export const WORKER_EXTERNAL_DEPS = [ 'cloudflare:*', 'crypto', 'tls', 'net', 'stream', 'fs', 'os', 'perf_hooks', 'path', 'dns', 'util', 'util/types', 'node:child_process', 'node:events', 'node:path', 'node:process', 'node:os', 'node:timers', 'node:util', ]