Skip to content

Latest commit

 

History

History
executable file
·
41 lines (26 loc) · 901 Bytes

README.md

File metadata and controls

executable file
·
41 lines (26 loc) · 901 Bytes

broccoli-ember-script

A EmberScript filter for Broccoli. This plugin simply compiles EmberScript to JS for Broccoli to further process, allowing Broccoli to control things such as optimization.

Broccoli filter for emberscript with ES6 and Ember CLI

See issue #42

Perhaps we should also hardcode ES6 import Ember as the first line of every emberscript file?

import Ember$ from 'ember'

Installation

npm install --save-dev broccoli-ember-script

Usage

var filterEmberScript = require('broccoli-ember-script');
tree = filterEmberScript(tree, options);

Options

bare

If bare is true, the EmberScript compiler will not emit a top-level function wrapper:

filterEmberScript(tree, {
  bare: true
})

Source Maps

Source maps are not yet supported.