KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
broccoli-swc
★ 13
Open GitHub ↗
Experimental SWC compiler for broccoli.
Download README (.md)
Explore Similar Repositories
puppeteer-example
:
fun init template for puppeteer
awesome-splunk-phantom
:
A collection of awesome resources built for and around the Splunk Phantom platform.
django-slugs-example-app
:
A basic app to show how to add slugs to models
autorun-creator
:
Create custom Autorun.inf for removable media
Principles-of-Compilers-Assignments
:
南开大学计算机学院“编译系统原理”课程作业。
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
broccoli-swc
?
Download (.md)
# broccoli-swc [](https://travis-ci.org/stefanpenner/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 ```js // Brocfile.js const swc = require('broccoli-swc'); module.exports = swc(__dirname + '/src', { swc: { module: { type: 'commonjs' | 'amd' moduleId: // optional or true, if true it will infer the module name from the file path. } } }); // where src/**/*.js contains ecmascript ``` ### Extension / Subclassing ```js // Brocfile.js const swc = require('broccoli-swc'); module.exports = class CustomSWC extends swc.Plugin { // custom behavior } ``` ## SWC Issues: https://github.com/stefanpenner/broccoli-swc/issues/9