Skip to content

Commit

Permalink
Revert "feat: format deno bundle output (denoland#5139)"
Browse files Browse the repository at this point in the history
This reverts commit 93cf3bd.
  • Loading branch information
ry committed Jun 3, 2020
1 parent 515d19d commit e5b0b6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
7 changes: 0 additions & 7 deletions cli/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,6 @@ fn format_stdin(check: bool) -> Result<(), ErrBox> {
Ok(())
}

/// Formats the given source text
pub fn format_text(source: &str) -> Result<String, ErrBox> {
dprint::Formatter::new(get_config())
.format_text(&PathBuf::from("_tmp.ts"), &source)
.map_err(|e| OpError::other(e).into())
}

fn files_str(len: usize) -> &'static str {
if len == 1 {
"file"
Expand Down
14 changes: 5 additions & 9 deletions cli/tests/bundle.test.out
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ let System, __instantiateAsync, __instantiate;
})();

System.register("print_hello", [], function (exports_1, context_1) {
[WILDCARD]
[WILDCARD]
});
System.register("subdir2/mod2", ["print_hello"], function (exports_2, context_2) {
[WILDCARD]
});
System.register(
"subdir2/mod2",
["print_hello"],
function (exports_2, context_2) {
[WILDCARD]
},
);
System.register("mod1", ["subdir2/mod2"], function (exports_3, context_3) {
[WILDCARD]
[WILDCARD]
});

const __exp = __instantiate("mod1");
Expand Down

0 comments on commit e5b0b6f

Please sign in to comment.