Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Jun 29, 2024
1 parent 8d01baa commit 90b35e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/cjs.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use indexmap::{IndexMap, IndexSet};
use std::vec;
use swc_common::DUMMY_SP;
use swc_ecmascript::ast::*;
use swc_ecmascript::visit::{noop_fold_type, Fold};
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ mod error;
mod swc;
mod test;

use swc::SWC;
use serde::{Deserialize, Serialize};
use swc::SWC;
use wasm_bindgen::prelude::*;

#[derive(Deserialize)]
Expand Down
18 changes: 7 additions & 11 deletions src/swc.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
use crate::cjs::CJSLexer;
use crate::error::{DiagnosticBuffer, ErrorBuffer};

use std::path::Path;
use indexmap::{IndexMap, IndexSet};
use swc_common::{
comments::SingleThreadedComments,
errors::{Handler, HandlerFlags},
FileName, SourceMap,
};
use swc_ecmascript::{
ast::{EsVersion, Module, Program},
parser::{lexer::Lexer, EsConfig, StringInput, Syntax},
visit::FoldWith,
};
use std::path::Path;
use swc_common::comments::SingleThreadedComments;
use swc_common::errors::{Handler, HandlerFlags};
use swc_common::{FileName, SourceMap};
use swc_ecmascript::ast::{EsVersion, Module, Program};
use swc_ecmascript::parser::{lexer::Lexer, EsConfig, StringInput, Syntax};
use swc_ecmascript::visit::FoldWith;

pub struct SWC {
pub module: Module,
Expand Down

0 comments on commit 90b35e2

Please sign in to comment.