broccoli-swc
Experimental SWC compiler for broccoli (mostly using this to explore SWC, and see what it still needs to be an option for us).
Super-fast javascript to javascript compiler written in rust
TL;DR SWC is a alternative to babel / buble for the JS ecosystem.
- SWC Repo: https://github.com/swc-project/swc
- SWC Site: https://swc-project.github.io/
This module aims to experiment using SWC in the broccoli and ember-cli ecosystems.
usage
Basic via Brocfile.js or Broccoli pipeline
// Brocfile.jsconst swc = ;moduleexports = ; // where src/**/*.js contains ecmascript
Extension / Subclassing
// Brocfile.jsconst swc = ; moduleexports = Plugin // custom behavior