Skip to content

Shorten bundle filenames to avoid MAX_PATH issues#993

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/shorten-bundle-file-names
Draft

Shorten bundle filenames to avoid MAX_PATH issues#993
Copilot wants to merge 2 commits intomasterfrom
copilot/shorten-bundle-file-names

Conversation

Copy link
Contributor

Copilot AI commented Feb 4, 2026

Bundle filenames were exceeding MAX_PATH during Service Fabric runtime installation due to Angular using full module paths in chunk names.

Changes

package.json

  • Removed --named-chunks and --output-hashing=none from build:prod and build:accesstesting scripts
  • Now uses production defaults: content-based hash filenames

angular.json

  • Added outputHashing: "all" and namedChunks: false to accesstesting configuration
  • Ensures consistent short filenames across all build targets

Result

Before: default-src_app_modules_backup-restore_partition-disable-back-up_partition-disable-back-up_co-25f3ba.js (100+ chars)
After:  polyfills.b89c88a17f7dcb6e.js (29 chars max)

All bundle filenames now ≤ 29 characters. Content hashing maintains cache invalidation semantics.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • download.cypress.io
    • Triggering command: /usr/local/bin/node node index.js --exec install (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>app module bundles file names exceed MAX_PATH</issue_title>
<issue_description>app module bundle's path are now exceeding MAX_PATH when installing into sf runtime.

example: default-src_app_modules_backup-restore_partition-disable-back-up_partition-disable-back-up_co-25f3ba.js

they need to be shortened</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: chensation <32966177+chensation@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix app module bundle file names exceeding MAX_PATH Shorten bundle filenames to avoid MAX_PATH issues Feb 4, 2026
Copilot AI requested a review from chensation February 4, 2026 21:18
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.

app module bundles file names exceed MAX_PATH

2 participants