Fix sourcemap command not stripping paths correctly (#544)

* Fix sourcemap command not stripping paths correctly

* Use ServeSession to get the proper root dir to strip for sourcemap
This commit is contained in:
Filip Tibell 2022-05-23 21:19:30 +02:00 • committed by GitHub
parent 18e53f06fe
commit 3cef2fe9aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -216,6 +216,10 @@ impl ServeSession {
pub fn serve_address(&self) -> Option<IpAddr> {
self.root_project.serve_address
}
pub fn root_dir(&self) -> &Path {
self.root_project.folder_location()
}
}
#[derive(Debug, Error)]