Skip to content

Conversation

@kamilogorek
Copy link
Contributor

Fixes #50

@kamilogorek kamilogorek requested review from a team and mitsuhiko September 28, 2022 14:59
src/builder.rs Outdated
SourceMap::new(self.file, self.tokens, self.names, self.sources, contents)

let mut sm = SourceMap::new(self.file, self.tokens, self.names, self.sources, contents);
sm.set_source_root(self.source_root.as_deref());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can just pass self.source_root directly?

@kamilogorek
Copy link
Contributor Author

Yes, yes you can apparently

@kamilogorek kamilogorek enabled auto-merge (squash) September 28, 2022 15:47
@kamilogorek kamilogorek merged commit cbcebd3 into master Sep 28, 2022
@kamilogorek kamilogorek deleted the sourceroot branch September 28, 2022 15:48
@kdy1
Copy link
Contributor

kdy1 commented Sep 29, 2022

Can you publish a new version?

@kamilogorek
Copy link
Contributor Author

Yes, will do Today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support sourceRoot from SourceMapBuilder

4 participants