From fab41e358cb13c348bc5119f15ef8ed40769e324 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 7 Jul 2020 20:07:21 +0000 Subject: [PATCH] fix(core): update --- ts/parcel.classes.parcel.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts/parcel.classes.parcel.ts b/ts/parcel.classes.parcel.ts index a89d7e4..a40b117 100644 --- a/ts/parcel.classes.parcel.ts +++ b/ts/parcel.classes.parcel.ts @@ -40,11 +40,15 @@ export class Parcel { * just builds */ public async build() { - const bundler = new plugins.parcel(this.entryFiles, this.options); + const bundler = new plugins.parcel(this.entryFiles, { + ...this.options, + watch: false + }); // Run the bundler, this returns the main bundle // Use the events if you're using watch mode as this promise will only trigger once and not for every rebuild const bundle = await bundler.bundle(); + } constructor(fromArg: string | string[], outputDirArg: string, outputFileArg: string) {