-
Notifications
You must be signed in to change notification settings - Fork 23
/
index.js
37 lines (31 loc) · 1.02 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
var multiBuild = require("./lib/build/multi");
var transform = require("./lib/build/transform");
var exporter = require("./lib/build/export");
var bundle = require("./lib/build/bundle");
module.exports = {
bundle: bundle,
build: multiBuild,
transform: transform,
optimize: require("./lib/build/slim"),
graph: {
each: require("./lib/graph/each_dependencies"),
map: require("./lib/graph/map_dependencies"),
make: require("./lib/graph/make_graph"),
makeOrderedTranspiledMinified:
require("./lib/graph/make_ordered_transpiled_minified_graph.js")
},
"export": exporter,
// Streaming API
streams: {
graph: require("./lib/graph/make_graph_with_bundles")
.createBundleGraphStream,
transpile: require("./lib/stream/transpile"),
treeshake: require("./lib/stream/treeshake"),
minify: require("./lib/stream/minify"),
bundle: require("./lib/stream/bundle"),
concat: require("./lib/bundle/concat_stream"),
write: require("./lib/bundle/write_bundles")
.createWriteStream,
steal: require("./lib/stream/steal")
}
};