Skip to content

Skip Scala.js sourcemap mapping when there are uncommitted changes#881

Merged
armanbilge merged 1 commit intotypelevel:mainfrom
hugo-vrijswijk:js-source-map-on-clean-repo
Mar 13, 2026
Merged

Skip Scala.js sourcemap mapping when there are uncommitted changes#881
armanbilge merged 1 commit intotypelevel:mainfrom
hugo-vrijswijk:js-source-map-on-clean-repo

Conversation

@hugo-vrijswijk
Copy link
Contributor

Skips the mapSourceURI flag when there are uncommitted changes, since it will be very unlikely to map to a remote source.
Source maps can still not exist when the commit is not pushed, but this will at least prevent the source map from being completely broken during local development.

Skips the `mapSourceURI` flag when there are uncommitted changes, since it will be very unlikely to map to a remote source.
Source maps can still not exist when the commit is not pushed, but this will at least prevent the source map from being completely broken during local development.
@mergify mergify bot added the github label Mar 13, 2026
Copy link
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

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

Thanks, good fix.

An alternative implementation I considered is if we should only set the GH sourcemaps when running in GHA CI. But that would be problematic in the unusual but not impossible event that a project has to be published locally. So I think this is the right compromise.

@armanbilge armanbilge merged commit 6b6fb24 into typelevel:main Mar 13, 2026
16 checks passed
@hugo-vrijswijk hugo-vrijswijk deleted the js-source-map-on-clean-repo branch March 13, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants