Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit d28c3ef

Browse files
committed
Fix deps
1 parent d0c190a commit d28c3ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/swc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ impl SWC {
130130
.strip_suffix(runtime)
131131
.unwrap()
132132
.into();
133+
if !is_jsx {
134+
resolver.deps.pop();
135+
}
133136
react::Options {
134137
runtime: Some(react::Runtime::Automatic),
135138
import_source,

0 commit comments

Comments
 (0)