From fbe56dc0bca528934ffa8218b7bf809bd571e397 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Mon, 7 Nov 2016 23:53:24 -0600 Subject: [PATCH] fix(bundling): execute bundle updates if full bundle has completed at least once execute bundle updates if full bundle has completed at least once --- src/watch.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/watch.ts b/src/watch.ts index a734a56e..d1c4ccb2 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -240,12 +240,11 @@ export function runBuildUpdate(context: BuildContext, changedFiles: ChangedFile[ } if (context.transpileState === BuildState.RequiresUpdate || context.transpileState === BuildState.RequiresBuild) { - if (context.bundleState === BuildState.SuccessfulBuild) { + if (context.bundleState === BuildState.SuccessfulBuild || context.bundleState === BuildState.RequiresUpdate) { // transpiling needs to happen // and there has already been a successful bundle before // so let's just do a bundle update context.bundleState = BuildState.RequiresUpdate; - } else { // transpiling needs to happen // but we've never successfully bundled before