broccoli-swc
[![Build Status](https://travis-ci.org/stefanpenner/broccoli-swc.svg?branch=master)](https://travis-ci.org/stefanpenner/broccoli-swc)
Last updated 2 years ago by stefanpenner .
MIT · Original npm · Tarball · package.json
$ cnpm install broccoli-swc 
SYNC missed versions from official npm registry.

broccoli-swc

Build Status

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.

This module aims to experiment using SWC in the broccoli and ember-cli ecosystems.

usage

Basic via Brocfile.js or Broccoli pipeline

// 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

// 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

Current Tags

  • 0.2.2                                ...           latest (2 years ago)

10 Versions

  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |