next.js
Turbopack: add codegen replacement for `global`
#78889
Merged

Turbopack: add codegen replacement for `global` #78889

mischnic merged 4 commits into canary from better_global
lukesandberg
ijjk ijjk added created-by: Turbopack team
lukesandberg
lukesandberg lukesandberg changed the title bind `global` as a variable instead of pulling it out of `__turbopack_context_` this makes it trivial for `swc` to eliminate when unneeded Add a dedicated `var global = globalThis;` declaration for the nodejs `global` variable. 297 days ago
ijjk
ijjk
mischnic
lukesandberg lukesandberg force pushed from 6300ac45 to a7c4dbc4 296 days ago
lukesandberg lukesandberg force pushed from a7c4dbc4 to ea5af6e3 296 days ago
lukesandberg lukesandberg force pushed from ea5af6e3 to 92fbbac1 296 days ago
mischnic
lukesandberg
lukesandberg lukesandberg marked this pull request as ready for review 296 days ago
lukesandberg lukesandberg requested a review from mischnic mischnic 296 days ago
mischnic
mischnic
mischnic approved these changes on 2025-05-08
lukesandberg
mischnic mischnic changed the title Add a dedicated `var global = globalThis;` declaration for the nodejs `global` variable. Turbopack: add codegen replacement for `global` 295 days ago
mischnic
mischnic approved these changes on 2025-05-08
lukesandberg
lukesandberg lukesandberg changed the base branch from 05-05-replace___dirname_references_at_compile_time_based_on_the_chunkingcontext to graphite-base/78889 295 days ago
lukesandberg lukesandberg changed the base branch from graphite-base/78889 to canary 295 days ago
lukesandberg lukesandberg force pushed from 8be6ff81 to ff5e8e20 295 days ago
mischnic mischnic force pushed from ff5e8e20 to 4e19bc30 295 days ago
lukesandberg lukesandberg force pushed from 4e19bc30 to 971c1841 294 days ago
lukesandberg lukesandberg force pushed from 971c1841 to c594a0e8 294 days ago
ijjk ijjk added Turbopack
lukesandberg bind `global` as a variable instead of pulling it out of `__turbopack…
d3f37457
lukesandberg tweak a comment
0212edcb
lukesandberg remove some more runtime bindings for `g: globalThis` now that we jus…
8226dabf
lukesandberg support the `global` global with a FreeVar replacement instead of a b…
fc50249f
mischnic mischnic force pushed from c594a0e8 to fc50249f 292 days ago
mischnic mischnic enabled auto-merge (squash) 292 days ago
mischnic mischnic merged 780b4d00 into canary 292 days ago
mischnic mischnic deleted the better_global branch 292 days ago
github-actions github-actions added locked
github-actions github-actions locked as resolved and limited conversation to collaborators 278 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone