diff --git a/crates/oxc_wasm/src/lib.rs b/crates/oxc_wasm/src/lib.rs index 6ac500c8f9de2f..5417a514ba461b 100644 --- a/crates/oxc_wasm/src/lib.rs +++ b/crates/oxc_wasm/src/lib.rs @@ -1,5 +1,3 @@ -mod options; - use std::{ cell::{Cell, RefCell}, path::{Path, PathBuf}, @@ -7,6 +5,10 @@ use std::{ sync::Arc, }; +use serde::Serialize; +use tsify::Tsify; +use wasm_bindgen::prelude::*; + use oxc::{ allocator::Allocator, ast::{ast::Program, Comment as OxcComment, CommentKind, Visit}, @@ -23,12 +25,11 @@ use oxc::{ use oxc_index::Idx; use oxc_linter::{Linter, ModuleRecord}; use oxc_prettier::{Prettier, PrettierOptions}; -use serde::Serialize; -use tsify::Tsify; -use wasm_bindgen::prelude::*; use crate::options::{OxcOptions, OxcRunOptions}; +mod options; + #[wasm_bindgen::prelude::wasm_bindgen(typescript_custom_section)] const TS_APPEND_CONTENT: &'static str = r#" import type { Program, Span } from "@oxc-project/types";