Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use request name for dynamic import chunks #262

Merged
merged 1 commit into from
Nov 22, 2021
Merged

Conversation

Niznikr
Copy link
Collaborator

@Niznikr Niznikr commented Nov 22, 2021

This change: (check at least one)

  • Adds a new feature
  • Fixes a bug
  • Improves maintainability
  • Improves documentation
  • Is a release activity

Is this a breaking change? (check one)

  • Yes
  • No

Is the: (complete all)

  • Title of this pull request clear, concise, and indicative of the issue number it addresses, if any?
  • Test suite(s) passing?
  • Code coverage maximal?
  • Changeset added?

What does this change address?
By default, Webpack uses an index as the id of dynamically imported chunks. This is why our icons show up as numerically named exports. We can use Webpack magic comments to use the resource's name instead.

How does this change work?

  • Place magic comment /* webpackChunkName: '[request]' */ within dynamic imports

Additional context
I solemnly swear that I am up to no good

on-behalf-of: @ithaka <robert.niznik@ithaka.org>
@changeset-bot
Copy link

changeset-bot bot commented Nov 22, 2021

🦋 Changeset detected

Latest commit: 0f2a0fe

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

This PR includes changesets to release 1 package
Name Type
@ithaka/pharos 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

Copy link
Contributor

@eslawski eslawski left a comment

Choose a reason for hiding this comment

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

fancy!

Copy link
Member

@daneah daneah left a comment

Choose a reason for hiding this comment

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

Fancy indeed. Looks worth a shot!

@Niznikr Niznikr merged commit c0ee52f into develop Nov 22, 2021
@Niznikr Niznikr deleted the fix/icon-names branch November 22, 2021 13:47
@github-actions github-actions bot mentioned this pull request Dec 7, 2021
sirrah-tam pushed a commit to sirrah-tam/pharos that referenced this pull request Dec 1, 2023
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.

3 participants