react-native-reanimated icon indicating copy to clipboard operation
react-native-reanimated copied to clipboard

Add experimental SWC plugin

Open j-piasecki opened this issue 2 years ago • 0 comments

Description

This PR adds an experimental SWC plugin implementation, allowing the use of Reanimated with SWC instead of Babel.

Huge thanks to @kwonoj for his initial work on this.

Changes

  • Added Experimental SWC plugin
  • Updated createNPMPackage.sh to also build the plugin
  • Updated build-npm-package workflow to also setup Rust (this needs to be tested)
  • Updated package.json to include the plugin binary when building the package

Test code and steps to reproduce

At the moment the tests for the Babel and SWC plugin are separate due to some cosmetic differences in the outputed code. Ideally this will be resolved before merging and the tests will be unified.

Checklist

  • [ ] Included code example that can be used to test this change
  • [ ] Updated TS types
  • [ ] Added TS types tests
  • [x] Added unit / integration tests
  • [ ] Updated documentation
  • [ ] Ensured that CI passes

j-piasecki avatar Jun 30 '22 14:06 j-piasecki