Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 18, 2025

HybridWebView.js.map is a TypeScript compilation artifact that should not be tracked in source control. Without an explicit gitignore pattern, Copilot PRs and other automated tools have been attempting to commit this file.

Changes

  • Added *.js.map pattern to .gitignore to exclude JavaScript source maps
  • Removed previously committed HybridWebView.js.map from git tracking

Pattern Specificity

The *.js.map pattern targets only JavaScript source maps. Existing .css.map files (Bootstrap dependencies in templates) remain tracked as intended since they have different file extensions.

# Before: HybridWebView.js.map appeared as untracked
$ git status
Untracked files:
  src/Core/src/Handlers/HybridWebView/HybridWebView.js.map

# After: File is properly ignored
$ git check-ignore -v HybridWebView.js.map
.gitignore:389:*.js.map
Original prompt

all copilot PRs keep checking in src/Core/src/Handlers/HybridWebView/HybridWebView.js.map can you figure out why that has started happening and how we should fix?


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 18, 2025 19:49
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix unnecessary check-ins of HybridWebView.js.map Add gitignore for TypeScript source map artifacts Dec 18, 2025
Copilot AI requested a review from PureWeen December 18, 2025 19:55
@PureWeen
Copy link
Member

@copilot why did this just start happening?

Copy link
Contributor Author

Copilot AI commented Dec 18, 2025

@copilot why did this just start happening?

The HybridWebView TypeScript file was added very recently - on December 18, 2025 in commit e1405bc (PR #33212).

When developers compile HybridWebView.ts to HybridWebView.js using TypeScript with the --sourceMap flag (or a tsconfig with sourceMap enabled), it generates the .js.map file. Since this is a new feature that was just added today, and there was no gitignore pattern for .js.map files, the source map started appearing as an untracked file immediately after developers began working with the TypeScript source.

The issue "just started happening" because:

  1. The TypeScript file was added today
  2. Developers compiled it locally (with source maps enabled)
  3. The .js.map artifact appeared in their working directory
  4. Without a gitignore pattern, Copilot agents saw it as a file that should be tracked

Fixed in commit 4c8caa4.

@PureWeen PureWeen marked this pull request as ready for review December 18, 2025 21:59
Copilot AI review requested due to automatic review settings December 18, 2025 21:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@jfversluis jfversluis merged commit 2644414 into main Dec 19, 2025
159 of 162 checks passed
@jfversluis jfversluis deleted the copilot/fix-hybrid-webview-map-checkin branch December 19, 2025 12:59
StephaneDelcroix pushed a commit that referenced this pull request Jan 5, 2026
`HybridWebView.js.map` is a TypeScript compilation artifact that should
not be tracked in source control. Without an explicit gitignore pattern,
Copilot PRs and other automated tools have been attempting to commit
this file.

## Changes

- Added `*.js.map` pattern to `.gitignore` to exclude JavaScript source
maps
- Removed previously committed `HybridWebView.js.map` from git tracking

## Pattern Specificity

The `*.js.map` pattern targets only JavaScript source maps. Existing
`.css.map` files (Bootstrap dependencies in templates) remain tracked as
intended since they have different file extensions.

```
# Before: HybridWebView.js.map appeared as untracked
$ git status
Untracked files:
  src/Core/src/Handlers/HybridWebView/HybridWebView.js.map

# After: File is properly ignored
$ git check-ignore -v HybridWebView.js.map
.gitignore:389:*.js.map
```

<!-- START COPILOT CODING AGENT SUFFIX -->



<!-- START COPILOT ORIGINAL PROMPT -->



<details>

<summary>Original prompt</summary>

> all copilot PRs keep checking in
src/Core/src/Handlers/HybridWebView/HybridWebView.js.map can you figure
out why that has started happening and how we should fix?


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

✨ Let Copilot coding agent [set things up for
you](https://github.com/dotnet/maui/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
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.

3 participants