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

Commit fbe56dc

Browse files
committed
fix(bundling): execute bundle updates if full bundle has completed at least once
execute bundle updates if full bundle has completed at least once
1 parent 91faf0b commit fbe56dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/watch.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,11 @@ export function runBuildUpdate(context: BuildContext, changedFiles: ChangedFile[
240240
}
241241

242242
if (context.transpileState === BuildState.RequiresUpdate || context.transpileState === BuildState.RequiresBuild) {
243-
if (context.bundleState === BuildState.SuccessfulBuild) {
243+
if (context.bundleState === BuildState.SuccessfulBuild || context.bundleState === BuildState.RequiresUpdate) {
244244
// transpiling needs to happen
245245
// and there has already been a successful bundle before
246246
// so let's just do a bundle update
247247
context.bundleState = BuildState.RequiresUpdate;
248-
249248
} else {
250249
// transpiling needs to happen
251250
// but we've never successfully bundled before

0 commit comments

Comments
 (0)