We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c253f49 commit b75c122Copy full SHA for b75c122
turbopack/crates/turbopack-ecmascript/src/analyzer/side_effects.rs
@@ -677,7 +677,9 @@ impl<'a> Visit for SideEffectVisitor<'a> {
677
}
678
679
match decl {
680
- // Import statements have no side effects (module loading is tracked separately)
+ // Import statements may have side effects, which could require full graph analysis
681
+ // Record that to decide if we can upgrade ModuleEvaluationIsSideEffectFree to
682
+ // SideEffectFree
683
ModuleDecl::Import(_) => {
684
self.has_imports = true;
685
0 commit comments