-
Notifications
You must be signed in to change notification settings - Fork 31.2k
Call register_assignment_scope() in visit_export_default_expr() and visit_export_default_decl()
#94581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: canary
Are you sure you want to change the base?
Call register_assignment_scope() in visit_export_default_expr() and visit_export_default_decl()
#94581
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import value from 'lib' | ||
|
|
||
| console.log(value) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "removeUnusedExports": true | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ | ||
| "output/1i9t_crates_turbopack-tests_tests_snapshot_basic_export-default_input_index_0va0_sb.js", | ||
| {"otherChunks":["output/1do3_crates_turbopack-tests_tests_snapshot_basic_export-default_input_1k9-ja7._.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/export-default/input/index.js [test] (ecmascript)"]} | ||
| ]); | ||
| // Dummy runtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to add some defense in depth
i think this would go in the get_export_ident_liveness function
in the else block for when there is no key in the map there are two theories for why we don't have a map entry, we should just
debug_assertthat that is the case (the var is free or is an import)