Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 3, 2023
1 parent c2a2ff6 commit 40d5735
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/turbopack-css/src/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ impl CssChunkItem for CssModuleChunkItem {
.0
.retain(|r| !matches!(r, &CssRule::Import(..)));

let mut srcmap = Default::default();
let mut srcmap = parcel_sourcemap::SourceMap::new("");
let result = stylesheet.to_css(PrinterOptions {
source_map: Some(&mut srcmap),
..Default::default()
Expand Down
4 changes: 2 additions & 2 deletions crates/turbopack-css/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub struct ParseCssResultSourceMap {
/// The position mappings that can generate a real source map given a (SWC)
/// SourceMap.
#[turbo_tasks(debug_ignore, trace_ignore)]
mappings: Vec<(BytePos, LineCol)>,
mappings: parcel_sourcemap::SourceMap,
}

impl PartialEq for ParseCssResultSourceMap {
Expand All @@ -74,7 +74,7 @@ impl PartialEq for ParseCssResultSourceMap {
}

impl ParseCssResultSourceMap {
pub fn new(source_map: Arc<SourceMap>, mappings: Vec<(BytePos, LineCol)>) -> Self {
pub fn new(source_map: Arc<SourceMap>, mappings: parcel_sourcemap::SourceMap) -> Self {
ParseCssResultSourceMap {
source_map,
mappings,
Expand Down

0 comments on commit 40d5735

Please sign in to comment.