Skip to content

Commit

Permalink
cfg for wassm
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Aug 8, 2023
1 parent a8d6358 commit d76776e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/swc_ecma_transforms_module/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ where
}

pub fn with_base_dir(resolver: R, base_dir: Option<PathBuf>) -> Self {
#[cfg(not(target_arch = "wasm32"))]
if let Some(base_dir) = &base_dir {
assert!(
base_dir.is_absolute(),
Expand Down

0 comments on commit d76776e

Please sign in to comment.