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

Commit 840a6f3

Browse files
committed
refactor(preprocess): move preprocess update step to later in buildUpdate process
1 parent 06e4971 commit 840a6f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/build.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,6 @@ function buildUpdateTasks(changedFiles: ChangedFile[], context: BuildContext) {
226226
};
227227

228228
return loadFiles(changedFiles, context)
229-
.then(() => {
230-
// PREPROCESS
231-
return preprocessUpdate(changedFiles, context);
232-
})
233229
.then(() => {
234230
// TEMPLATE
235231
if (context.templateState === BuildState.RequiresUpdate) {
@@ -258,6 +254,10 @@ function buildUpdateTasks(changedFiles: ChangedFile[], context: BuildContext) {
258254
return Promise.resolve();
259255

260256
})
257+
.then(() => {
258+
// PREPROCESS
259+
return preprocessUpdate(changedFiles, context);
260+
})
261261
.then(() => {
262262
// BUNDLE
263263
if (context.bundleState === BuildState.RequiresUpdate) {

0 commit comments

Comments
 (0)