Skip to content

Conversation

@artola
Copy link
Contributor

@artola artola commented Jul 18, 2025

Fixes #2 by adding acorn as both devDependency and peerDependency to ensure proper JSX parsing functionality.

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and discussions and couldn’t find anything or linked relevant results below
  • I made sure the docs are up to date
  • I included tests (or that’s not needed)

Description of changes

This PR adds the missing acorn dependency to the recma-jsx package:

  • Adds acorn as a devDependency (^8.0.0)
  • Adds acorn as a peerDependency (^6.0.0 || ^7.0.0 || ^8.0.0)

This ensures proper JSX parsing functionality and resolves the dependency issue reported in #2.

Fixes mdx-js#2 by adding acorn as both devDependency and peerDependency
to ensure proper JSX parsing functionality.
@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Jul 18, 2025
Update basic fixture expected AST to reflect changes in AST structure
when acorn is properly declared as a dependency.
@artola artola mentioned this pull request Jul 18, 2025
4 tasks
@codecov
Copy link

codecov bot commented Jul 19, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@artola artola requested a review from remcohaszing July 19, 2025 10:59
@wooorm wooorm merged commit 1aa3ae9 into mdx-js:main Jul 28, 2025
4 checks passed
@github-actions

This comment has been minimized.

@wooorm wooorm added 📦 area/deps This affects dependencies 💪 phase/solved Post is done labels Jul 28, 2025
@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Jul 28, 2025
@wooorm
Copy link
Member

wooorm commented Jul 28, 2025

wooorm added a commit to mdx-js/mdx that referenced this pull request Aug 29, 2025
Yarn results in trouble for peer dependencies.
This solves that.

Related-to: mdx-js/recma#3.

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

Labels

📦 area/deps This affects dependencies 💪 phase/solved Post is done

Development

Successfully merging this pull request may close these issues.

Missing to list a dependency

4 participants