Skip to content

Commit bdcbc58

Browse files
authored
Reintroduce reading snippets and modules in cli-support (rustwasm#4172)
1 parent 76013f2 commit bdcbc58

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/cli-support/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,14 @@ impl Output {
616616
self.generated.start.as_ref()
617617
}
618618

619+
pub fn snippets(&self) -> &HashMap<String, Vec<String>> {
620+
&self.generated.snippets
621+
}
622+
623+
pub fn local_modules(&self) -> &HashMap<String, String> {
624+
&self.generated.local_modules
625+
}
626+
619627
pub fn npm_dependencies(&self) -> &HashMap<String, (PathBuf, String)> {
620628
&self.generated.npm_dependencies
621629
}

0 commit comments

Comments
 (0)