Skip to content

fix: web ui bundle build on windows#19337

Merged
Hona merged 2 commits intoanomalyco:devfrom
Hona:fix/build-web-ui-bundle
Mar 26, 2026
Merged

fix: web ui bundle build on windows#19337
Hona merged 2 commits intoanomalyco:devfrom
Hona:fix/build-web-ui-bundle

Conversation

@Hona
Copy link
Copy Markdown
Member

@Hona Hona commented Mar 26, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 26, 2026 21:48
Copy link
Copy Markdown
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.

Pull request overview

This PR fixes embedding the Web UI bundle into the opencode binary on Windows by generating a portable, correctly-escaped import map for files in the app’s dist/ output.

Changes:

  • Normalize embedded Web UI bundle paths to forward slashes for consistent keying across platforms.
  • Generate import specifiers using relative paths + JSON.stringify(...) to avoid Windows path/escape issues.
  • Refactor the generated file-map output into clearer imports + entries assembly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Hona Hona enabled auto-merge (squash) March 26, 2026 22:11
@Hona Hona merged commit ef7d1f7 into anomalyco:dev Mar 26, 2026
8 checks passed
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.

2 participants