From 5f4e8e0cba6d4b16d6ddfb245f1dc776e8fe57a5 Mon Sep 17 00:00:00 2001 From: guybedford Date: Thu, 8 Oct 2015 16:46:16 +0200 Subject: [PATCH] document depCache idea in builder API --- docs/api.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/api.md b/docs/api.md index 1b6d87272..879cc442f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -109,14 +109,15 @@ builder.config({ custom: 'options' }); // or builder.buildStatic builder.bundle('app/main.js', { - minify: true, - - // inject the bundle config into the configuration file - inject: true + minify: true }) .then(function(output) { // output is now an in-memory build -}) + // output.source + + // get the depCache configuration for the tree + var depCache = builder.getDepCache(output.tree); +}); ``` The builder will be automatically configured to have the correct jspm configuration and baseURL for the environment.