feat: use local bundle strategy
This commit is contained in:
1 parent
4a54934c8e
commit
baab2b9b4f
13 files changed
+3604
-1351
No files matched your search
@@ -15,7 +15,7 @@ pub struct Autoformat {
|
||||
impl Autoformat {
|
||||
pub fn autoformat(self) -> Result<()> {
|
||||
if let Some(raw) = self.raw {
|
||||
if let Some(inner) = dioxus_autofmt::fmt_block(&raw) {
|
||||
if let Some(inner) = dioxus_autofmt::fmt_block(&raw, 0) {
|
||||
println!("{}", inner);
|
||||
} else {
|
||||
// exit process with error
|
||||
@@ -25,7 +25,7 @@ impl Autoformat {
|
||||
}
|
||||
|
||||
if let Some(file) = self.file {
|
||||
let edits = dioxus_autofmt::get_format_blocks(&file);
|
||||
let edits = dioxus_autofmt::fmt_file(&file);
|
||||
let as_json = serde_json::to_string(&edits).unwrap();
|
||||
println!("{}", as_json);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user