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 fs read for MDX transform #10866

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Remove fs read for MDX transform #10866

merged 1 commit into from
Apr 24, 2024

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Apr 24, 2024

Changes

Merges into mdx-v3 branch

When transforming MDX, we can use the code from the transform() hook directly. The import.meta.env issue is no longer a problem as Vite and Astro had refactored how the replacements are done.

Testing

Existing tests should pass.

Docs

n/a. internal change.

Copy link

changeset-bot bot commented Apr 24, 2024

🦋 Changeset detected

Latest commit: d7dc41d

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 Apr 24, 2024
@bluwy bluwy merged commit dd7a113 into mdx-v3 Apr 24, 2024
13 checks passed
@bluwy bluwy deleted the transform-mdx branch April 24, 2024 14:01
@bluwy bluwy mentioned this pull request May 2, 2024
ematipico pushed a commit that referenced this pull request May 8, 2024
* fix(mdx): convert remark-images-to-component plugin to a rehype plugin (#10697)

* Remove fs read for MDX transform (#10866)

* Tag MDX component for faster checks when rendering (#10864)

* Use unified plugin only for MDX transform (#10869)

* Only traverse children and handle mdxJsxTextElement when optimizing (#10885)

* Rename to `optimize.ignoreComponentNames` in MDX (#10884)

* Allow remark/rehype plugins added after mdx to work (#10877)

* Improve MDX optimize with sibling nodes (#10887)

* Improve types in rehype-optimize-static.ts

* Rename `ignoreComponentNames` to `ignoreElementNames`

I think this better reflects what it's actually doing

* Simplify plain MDX nodes in optimize option (#10934)

* Format code

* Minimize diff changes

* Update .changeset/slimy-cobras-end.md

Co-authored-by: Sarah Rainsberger <[email protected]>

---------

Co-authored-by: Armand Philippot <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
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.

2 participants