Skip to content

Commit a0fc091

Browse files
authored
refactor(esm-lib-plugin): manually resolve exports that re star-exported, and improve NodeTargetPlugin for module output (#12476)
refactor: use exports info to calculate entry exports Manually resolve exports that are star exported. Improve NodeTargetPlugin support for module output.
1 parent 3058658 commit a0fc091

File tree

54 files changed

+945
-1073
lines changed

Some content is hidden

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

54 files changed

+945
-1073
lines changed

crates/rspack_plugin_esm_library/src/chunk_link.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ pub enum ReExportFrom {
276276
pub struct ChunkLinkContext {
277277
pub chunk: ChunkUkey,
278278

279+
pub decl_before_exports: FxIndexSet<String>,
280+
279281
/**
280282
specifier order doesn't matter, we can sort them based on name
281283
Map<module_id, Map<local_name, export_name>>
@@ -358,6 +360,7 @@ impl ChunkLinkContext {
358360
chunk: chunk_ukey,
359361
hoisted_modules,
360362
decl_modules,
363+
decl_before_exports: Default::default(),
361364
exports: Default::default(),
362365
re_exports: Default::default(),
363366
imports: Default::default(),

0 commit comments

Comments
 (0)