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
2d80f1a2
Unverified
Commit
2d80f1a2
authored
Sep 19, 2025
by
Niklas Mischkulnig
Committed by
GitHub
Sep 19, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turbopack: JsAnalyzer parse AssignExpr (#83962)
parent
ffa66ff5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11012 additions
and
10582 deletions
+11012
-10582
graph.rs
turbopack/crates/turbopack-ecmascript/src/analyzer/graph.rs
+2
-0
graph-explained.snapshot
...lyzer/graph/react-dom-production/graph-explained.snapshot
+141
-253
resolved-effects.snapshot
...yzer/graph/react-dom-production/resolved-effects.snapshot
+8263
-7749
resolved-explained.snapshot
...er/graph/react-dom-production/resolved-explained.snapshot
+2587
-2553
graph-effects.snapshot
...analyzer/graph/webpack-target-node/graph-effects.snapshot
+6
-5
graph-explained.snapshot
...alyzer/graph/webpack-target-node/graph-explained.snapshot
+1
-3
graph.snapshot
...t/tests/analyzer/graph/webpack-target-node/graph.snapshot
+6
-5
resolved-effects.snapshot
...lyzer/graph/webpack-target-node/resolved-effects.snapshot
+3
-5
resolved-explained.snapshot
...zer/graph/webpack-target-node/resolved-explained.snapshot
+3
-9
No files found.
turbopack/crates/turbopack-ecmascript/src/analyzer/graph.rs
View file @
2d80f1a2
...
...
@@ -737,6 +737,8 @@ impl EvalContext {
..
})
=>
JsValue
::
WellKnownObject
(
WellKnownObjectKind
::
ImportMeta
),
Expr
::
Assign
(
AssignExpr
{
right
,
..
})
=>
self
.eval
(
right
),
_
=>
JsValue
::
unknown_empty
(
true
,
"unsupported expression"
),
}
}
...
...
turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/react-dom-production/graph-explained.snapshot
View file @
2d80f1a2
This diff is collapsed.
Click to expand it.
turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/react-dom-production/resolved-effects.snapshot
View file @
2d80f1a2
This diff is collapsed.
Click to expand it.
turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/react-dom-production/resolved-explained.snapshot
View file @
2d80f1a2
This diff is collapsed.
Click to expand it.
turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/webpack-target-node/graph-effects.snapshot
View file @
2d80f1a2
...
...
@@ -2440,11 +2440,12 @@
),
args: [
Value(
Unknown {
original_value: None,
reason: "unsupported expression",
has_side_effects: true,
},
Variable(
(
"moduleId",
#6,
),
),
),
],
ast_path: [
...
...
turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/webpack-target-node/graph-explained.snapshot
View file @
2d80f1a2
*arrow function 1213* = (...) => __webpack_require__(???*0*)
- *0* unsupported expression
⚠️ This value might have side effects
*arrow function 1213* = (...) => __webpack_require__(moduleId)
*arrow function 131* = (...) => undefined
...
...
turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/webpack-target-node/graph.snapshot
View file @
2d80f1a2
...
...
@@ -13,11 +13,12 @@
),
),
[
Unknown {
original_value: None,
reason: "unsupported expression",
has_side_effects: true,
},
Variable(
(
"moduleId",
#6,
),
),
],
),
),
...
...
turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/webpack-target-node/resolved-effects.snapshot
View file @
2d80f1a2
...
...
@@ -42,11 +42,9 @@
0 -> 19 member call = (module<../../webpack-api-runtime.js, {}> | undefined)["C"](({} | undefined))
0 -> 21 call = (module<../../webpack-api-runtime.js, {}> | undefined)(???*0*)
- *0*
unsupported expression
⚠️
This value might have side effects
- *0*
arguments[0]
⚠️
function calls are not analysed yet
0 -> 22 call = ((...) => __webpack_require__(???*0*) | undefined)(5166)
- *0* unsupported expression
⚠️ This value might have side effects
0 -> 22 call = ((...) => __webpack_require__(moduleId) | undefined)(5166)
0 -> 24 free var = FreeVar(module)
turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/webpack-target-node/resolved-explained.snapshot
View file @
2d80f1a2
*arrow function 1213* = (...) => __webpack_require__(???*0*)
- *0* unsupported expression
⚠️ This value might have side effects
*arrow function 1213* = (...) => __webpack_require__(moduleId)
*arrow function 131* = (...) => undefined
...
...
@@ -10,15 +8,11 @@ __unused_webpack_module = ???*0*
- *0* arguments[0]
⚠️ function calls are not analysed yet
__webpack_exec__ = ((...) => __webpack_require__(???*0*) | undefined)
- *0* unsupported expression
⚠️ This value might have side effects
__webpack_exec__ = ((...) => __webpack_require__(moduleId) | undefined)
__webpack_exports__#3 = (???*0* | undefined)
- *0* ((...) => __webpack_require__(
???*1*
) | undefined)(5166)
- *0* ((...) => __webpack_require__(
moduleId
) | undefined)(5166)
⚠️ non-function callee
- *1* unsupported expression
⚠️ This value might have side effects
__webpack_exports__#4 = ???*0*
- *0* arguments[1]
...
...
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