Skip to content

Commit 72048ae

Browse files
magic-akarikdy1
authored andcommittedJan 21, 2024
feat(es/ast): Support import phase (#8279)
**Description:** - https://github.com/tc39/proposal-source-phase-imports
1 parent bc38ac9 commit 72048ae

File tree

371 files changed

+2436
-718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

371 files changed

+2436
-718
lines changed
 

‎crates/swc_bundler/src/bundler/import/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ where
244244
src: Box::new(src.clone()),
245245
type_only: false,
246246
with: None,
247+
phase: Default::default(),
247248
};
248249

249250
if self.top_level {
@@ -645,6 +646,7 @@ where
645646
src: Box::new(src),
646647
type_only: false,
647648
with: None,
649+
phase: Default::default(),
648650
};
649651

650652
// if self.top_level {

‎crates/swc_bundler/src/bundler/load.rs

+1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ where
304304
src: Box::new(src),
305305
type_only: false,
306306
with: None,
307+
phase: Default::default(),
307308
},
308309
true,
309310
false,

0 commit comments

Comments
 (0)
Please sign in to comment.