next.js
d7c6ff6c - Turbopack: remove GlobalTypeofs AST pass (#83479)

Commit
208 days ago
Turbopack: remove GlobalTypeofs AST pass (#83479) Port `EcmascriptInputTransform::GlobalTypeofs` from an extra AST pass to using the `CompileTimeInfo` replacement infrastructure. Ideally, we'd get rid of the `enable_typeof_window_inlining` option entirely. But currently you cannot have different `CompileTimeInfo` per module asset context, so it's not possible to different replacements per directory (which is what we unfortunately want for `typeof window` replacements). Basically closes PACK-5049
Author
Parents
Loading