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
99b4c96e
Unverified
Commit
99b4c96e
authored
Feb 19, 2026
by
Niklas Mischkulnig
Committed by
GitHub
Feb 19, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turbopack: document ModuleSideEffects better (#90132)
parent
bedf3665
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
module.rs
turbopack/crates/turbopack-core/src/module.rs
+6
-0
No files found.
turbopack/crates/turbopack-core/src/module.rs
View file @
99b4c96e
...
...
@@ -15,11 +15,17 @@ pub enum StyleType {
pub
enum
ModuleSideEffects
{
/// Analysis determined that the module evaluation is side effect free
/// the module may still be side effectful based on its imports.
///
/// This module might not be chunked after Turbopack performed a global analysis on the module
/// graph.
ModuleEvaluationIsSideEffectFree
,
/// Is known to be side effect free either due to static analysis or some kind of configuration.
/// ```js
/// "use turbopack no side effects"
/// ```
///
/// This module might not even be parsed (and thus chunked) if no other module depends on any of
/// its exports.
SideEffectFree
,
// Neither of the above, so we should assume it has side effects.
SideEffectful
,
...
...
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