Unverified Commit 2817d0f7 authored by Renée Kooi's avatar Renée Kooi Committed by GitHub
Browse files

Fix outputting dynamic bundles, fixes #472 (#474)

When #443 was merged, it moved the list of dynamic bundle names to a
metadata property on the `scripts:bundle` node. However, the `bankai
build` command was never updated to match.
parent 8daa49b6
......@@ -48,7 +48,7 @@ function build (entry, outdir, opts) {
var stepName = nodeName + ':' + edgeName
if (stepName === 'assets:list') writeAssets('assets')
if (stepName === 'documents:list') writeDocuments('documents')
if (stepName === 'scripts:list') writeScripts('scripts')
if (stepName === 'scripts:bundle') writeScripts('scripts')
if (stepName === 'service-worker:bundle') {
var filename = compiler.graph.metadata.serviceWorker
compiler.serviceWorker(writeSimple(filename, 'service-worker'))
......@@ -103,9 +103,8 @@ function build (entry, outdir, opts) {
}
function writeScripts (step) {
var node = compiler.graph.data[step].list
var list = String(node.buffer)
list = list.length ? list.split(',') : []
var node = compiler.graph.data[step].bundle
var list = node.dynamicBundles || []
async.mapLimit(list, 3, iterator, function (err) {
if (err) return log.error(err)
completed(step)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment