Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(bundling): execute bundle updates if full bundle has completed at…
Browse files Browse the repository at this point in the history
… least once

execute bundle updates if full bundle has completed at least once
  • Loading branch information
danbucholtz committed Nov 9, 2016
1 parent 91faf0b commit fbe56dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbe56dc

Please sign in to comment.