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

Remove @mdx-js/rollup dependency #7191

Merged
merged 1 commit into from
May 24, 2023
Merged

Remove @mdx-js/rollup dependency #7191

merged 1 commit into from
May 24, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented May 24, 2023

Changes

Fix #7176

Remove @mdx-js/rollup dep for @astrojs/mdx because we're not really using the Rollup plugin entirely. In it's source code, there's the name and transform field, and we're replacing it with our own transform field:

// Override transform to alter code before MDX compilation
// ex. inject layouts
async transform(_, id) {

That leaves the name being used only, and we can simplify it by copying over the name and remove the dependency.

Testing

Existing test should pass.

Docs

n/a. internal refactoring.

@changeset-bot
Copy link

changeset-bot bot commented May 24, 2023

🦋 Changeset detected

Latest commit: f43300f

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 the pkg: integration Related to any renderer integration (scope) label May 24, 2023
@bluwy bluwy merged commit 27c6e01 into main May 24, 2023
13 of 14 checks passed
@bluwy bluwy deleted the no-mdx-rollup branch May 24, 2023 09:02
@astrobot-houston astrobot-houston mentioned this pull request May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERR_PNPM_PEER_DEP_ISSUES  Unmet peer dependencies
2 participants