Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ deno_terminal = "0.2.2"
deno_error = "0.5.6"

dprint-swc-ext = "0.23.0"
once_cell = "1.21.1"
percent-encoding = "2.3.1"
serde = { version = "1.0.219", features = ["derive"] }
text_lines = { version = "0.6.0", features = ["serialization"] }
Expand Down
3 changes: 2 additions & 1 deletion src/parsed_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use std::fmt;
use std::sync::Arc;
use std::sync::OnceLock;

use dprint_swc_ext::common::SourceRange;
use dprint_swc_ext::common::SourceRanged;
Expand Down Expand Up @@ -286,7 +287,7 @@ pub(crate) struct ParsedSourceInner {
pub specifier: ModuleSpecifier,
pub media_type: MediaType,
pub text: Arc<str>,
pub source_text_info: Arc<once_cell::sync::OnceCell<SourceTextInfo>>,
pub source_text_info: Arc<OnceLock<SourceTextInfo>>,
pub comments: MultiThreadedComments,
pub program: Arc<Program>,
pub tokens: Option<Arc<Vec<TokenAndSpan>>>,
Expand Down