Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
a2d17039
Commit
a2d17039
authored
Aug 08, 2025
by
Tobias Koppers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass ModulePart correctly for FreeVarReference::EcmaScriptModule
parent
61651b2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
mod.rs
turbopack/crates/turbopack-ecmascript/src/references/mod.rs
+1
-8
No files found.
turbopack/crates/turbopack-ecmascript/src/references/mod.rs
View file @
a2d17039
...
@@ -435,7 +435,6 @@ struct AnalysisState<'a> {
...
@@ -435,7 +435,6 @@ struct AnalysisState<'a> {
// There can be many references to import.meta, but only the first should hoist
// There can be many references to import.meta, but only the first should hoist
// the object allocation.
// the object allocation.
first_import_meta
:
bool
,
first_import_meta
:
bool
,
tree_shaking_mode
:
Option
<
TreeShakingMode
>
,
import_externals
:
bool
,
import_externals
:
bool
,
ignore_dynamic_requests
:
bool
,
ignore_dynamic_requests
:
bool
,
url_rewrite_behavior
:
Option
<
UrlRewriteBehavior
>
,
url_rewrite_behavior
:
Option
<
UrlRewriteBehavior
>
,
...
@@ -964,7 +963,6 @@ pub async fn analyse_ecmascript_module_internal(
...
@@ -964,7 +963,6 @@ pub async fn analyse_ecmascript_module_internal(
fun_args_values
:
Default
::
default
(),
fun_args_values
:
Default
::
default
(),
var_cache
:
Default
::
default
(),
var_cache
:
Default
::
default
(),
first_import_meta
:
true
,
first_import_meta
:
true
,
tree_shaking_mode
:
options
.tree_shaking_mode
,
import_externals
:
options
.import_externals
,
import_externals
:
options
.import_externals
,
ignore_dynamic_requests
:
options
.ignore_dynamic_requests
,
ignore_dynamic_requests
:
options
.ignore_dynamic_requests
,
url_rewrite_behavior
:
options
.url_rewrite_behavior
,
url_rewrite_behavior
:
options
.url_rewrite_behavior
,
...
@@ -2624,12 +2622,7 @@ async fn handle_free_var_reference(
...
@@ -2624,12 +2622,7 @@ async fn handle_free_var_reference(
span
.hi
.to_u32
(),
span
.hi
.to_u32
(),
),
),
Default
::
default
(),
Default
::
default
(),
match
state
.tree_shaking_mode
{
export
.clone
()
.map
(
ModulePart
::
export
),
Some
(
TreeShakingMode
::
ModuleFragments
|
TreeShakingMode
::
ReexportsOnly
,
)
=>
export
.clone
()
.map
(
ModulePart
::
export
),
None
=>
None
,
},
state
.import_externals
,
state
.import_externals
,
)
)
.resolved_cell
())
.resolved_cell
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment