Skip to content

[WIP] - SWC Plugin Infrastructure, tests and implementation#100

Draft
spanishpear wants to merge 3 commits into
albertogasparin:masterfrom
spanishpear:master
Draft

[WIP] - SWC Plugin Infrastructure, tests and implementation#100
spanishpear wants to merge 3 commits into
albertogasparin:masterfrom
spanishpear:master

Conversation

@spanishpear
Copy link
Copy Markdown

@spanishpear spanishpear commented Dec 22, 2024

This is a long running, not committed to side-project of creating a rust implementation of the babel plugin for SWC.

Feel free to take the existing work and run with it. I don't fully understand the existing babel plugin, so focusing on a good test setup first so the work is still usable by others if they want to continue on :)

todo:

  • run cargo tests through JSX transform first, to match magnetic-di babel tests
  • convert babel tests to rust fixtures
  • port babel plugin config to a Struct
  • consume babel plugin config in swc plugin initialization
  • update package json name for swc plugin to be more specific, ready for publish 😆
  • add end-to-end tests with real jest config
  • Implement transform
    • more to come under here, I'm sure

@albertogasparin albertogasparin mentioned this pull request Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant