Skip to content

Conversation

@nicholasio
Copy link
Member

Related Issue/RFC: #455

Description of the Change

Alternate Designs

Possible Drawbacks

Verification Process

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.
  • I have added a changeset to my PR. See CONTRIBUTING document for instructions

@changeset-bot
Copy link

changeset-bot bot commented Jul 22, 2025

🦋 Changeset detected

Latest commit: 257178a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
10up-toolkit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@changeset-bot
Copy link

changeset-bot bot commented Jul 22, 2025

🦋 Changeset detected

Latest commit: 6cb07e6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
10up-toolkit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nicholasio nicholasio requested a review from fabiankaegy July 22, 2025 13:48
Copy link

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 an issue with leading slashes in asset generation entry names for block assets in the webpack configuration. The fix ensures that entry names are properly normalized by removing leading slashes that could cause issues in asset bundling.

  • Adds a regex replacement to remove leading slashes from generated entry names
  • Implements comprehensive test coverage for the block asset entry generation functionality
  • Documents the fix in a changeset for proper release tracking

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/toolkit/config/webpack/entry.js Adds regex to strip leading slashes from entry names after path normalization
packages/toolkit/config/webpack/tests/entry.js Adds extensive test coverage for block asset handling including edge cases
.changeset/tough-jokes-double.md Documents the fix for release notes

Copy link
Member

@fabiankaegy fabiankaegy left a comment

Choose a reason for hiding this comment

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

I've not encountered any issues with this before but the change looks good 👍

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants