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. 1 year ago
ijjk
ijjk
mischnic
lukesandberg lukesandberg force pushed from 6300ac45 1 year ago
lukesandberg lukesandberg force pushed 1 year ago
lukesandberg lukesandberg force pushed to 92fbbac1 1 year ago
mischnic
lukesandberg
lukesandberg lukesandberg marked this pull request as ready for review 1 year ago
lukesandberg lukesandberg requested a review from mischnic mischnic 1 year 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` 1 year 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 1 year ago
lukesandberg lukesandberg changed the base branch from graphite-base/78889 to canary 1 year ago
lukesandberg lukesandberg force pushed from 8be6ff81 to ff5e8e20 1 year ago
mischnic mischnic force pushed from ff5e8e20 to 4e19bc30 1 year ago
lukesandberg lukesandberg force pushed from 4e19bc30 1 year ago
lukesandberg lukesandberg force pushed to c594a0e8 1 year 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 1 year ago
mischnic mischnic enabled auto-merge (squash) 1 year ago
mischnic mischnic merged 780b4d00 into canary 1 year ago
mischnic mischnic deleted the better_global branch 1 year ago
github-actions github-actions added locked
github-actions github-actions locked as resolved and limited conversation to collaborators 354 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone