transpile

  • function
steal-tools.streams.transpile  

Create a stream of BuildResult objects.

stealTools.streams.transpile()

Returns

{Stream<BuildResult>}

A stream of objects that contains the dependency graph, transpiled to AMD.

Use

This stream is used to transpile the dependency graph to AMD format for use in production environments.

This API must be used in conjuction with graph.

var s = require("steal-tools").streams;

var graphStream = s.graph({
    config: __dirname + "/package.json!npm"
}, {
    minify: false
});

var transpileStream = graphStream.pipe(s.transpile());

transpileStream.on("data", function(data){
    var dependencyGraph = data.graph;
});
Help us improve StealJS by taking our community survey