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
b1cc500f
Commit
b1cc500f
authored
Jan 29, 2026
by
Tobias Koppers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder check
parent
c132076d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
export.rs
.../crates/turbopack-ecmascript/src/references/esm/export.rs
+9
-9
No files found.
turbopack/crates/turbopack-ecmascript/src/references/esm/export.rs
View file @
b1cc500f
...
@@ -159,15 +159,6 @@ pub async fn follow_reexports(
...
@@ -159,15 +159,6 @@ pub async fn follow_reexports(
let
mut
module
=
module
;
let
mut
module
=
module
;
let
mut
export_name
=
export_name
;
let
mut
export_name
=
export_name
;
loop
{
loop
{
let
exports
=
module
.get_exports
()
.await
?
;
let
EcmascriptExports
::
EsmExports
(
exports
)
=
&*
exports
else
{
return
Ok
(
FollowExportsResult
::
cell
(
FollowExportsResult
{
module
,
export_name
:
Some
(
export_name
),
ty
:
FoundExportType
::
Dynamic
,
}));
};
if
!
ignore_side_effects
if
!
ignore_side_effects
&&
*
module
.side_effects
()
.await
?
!=
ModuleSideEffects
::
SideEffectFree
&&
*
module
.side_effects
()
.await
?
!=
ModuleSideEffects
::
SideEffectFree
{
{
...
@@ -182,6 +173,15 @@ pub async fn follow_reexports(
...
@@ -182,6 +173,15 @@ pub async fn follow_reexports(
}
}
ignore_side_effects
=
false
;
ignore_side_effects
=
false
;
let
exports
=
module
.get_exports
()
.await
?
;
let
EcmascriptExports
::
EsmExports
(
exports
)
=
&*
exports
else
{
return
Ok
(
FollowExportsResult
::
cell
(
FollowExportsResult
{
module
,
export_name
:
Some
(
export_name
),
ty
:
FoundExportType
::
Dynamic
,
}));
};
// Try to find the export in the local exports
// Try to find the export in the local exports
let
exports_ref
=
exports
.await
?
;
let
exports_ref
=
exports
.await
?
;
if
let
Some
(
export
)
=
exports_ref
.exports
.get
(
&
export_name
)
{
if
let
Some
(
export
)
=
exports_ref
.exports
.get
(
&
export_name
)
{
...
...
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