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

Vendor image-size #6559

Merged
merged 8 commits into from Mar 16, 2023
Merged

Vendor image-size #6559

merged 8 commits into from Mar 16, 2023

Conversation

Princesseuh
Copy link
Member

Changes

image-size has caused us a lot of migraine because it's CJS. For some reasons, Vite does not handle it correctly and you get a bunch of require is not defined and other errors depending on your package manager, type of install, phase of the moon etc. This vendors it and removes the CJS part of it so everything works.

Vendoring queue, a dep of image-size was also needed because it ran into the same issues.

Testing

Tests still pass + tested manually!

Docs

N/A

@Princesseuh Princesseuh requested a review from a team as a code owner March 15, 2023 17:20
@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2023

🦋 Changeset detected

Latest commit: ce5d603

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

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

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) feat: markdown Related to Markdown (scope) labels Mar 15, 2023
@yanthomasdev yanthomasdev removed the request for review from a team March 15, 2023 17:35
Copy link
Member

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

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

Removed the maintainers-docs review since the only "docs change" is the vendor README that isn't user-facing (and LGTM!) 🙌

Copy link
Contributor

@matthewp matthewp left a comment

Choose a reason for hiding this comment

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

Needs a changeset. Otherwise looks good, thanks for remembering the license.

@Princesseuh Princesseuh merged commit 90e5f87 into main Mar 16, 2023
3 of 4 checks passed
@Princesseuh Princesseuh deleted the fix/image-size-am-tired-of-cjs branch March 16, 2023 14:10
@astrobot-houston astrobot-houston mentioned this pull request Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: markdown Related to Markdown (scope) pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants