fix(core): update
This commit is contained in:
parent
a878130d6c
commit
fab41e358c
@ -40,11 +40,15 @@ export class Parcel {
|
|||||||
* just builds
|
* just builds
|
||||||
*/
|
*/
|
||||||
public async build() {
|
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
|
// 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
|
// 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();
|
const bundle = await bundler.bundle();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(fromArg: string | string[], outputDirArg: string, outputFileArg: string) {
|
constructor(fromArg: string | string[], outputDirArg: string, outputFileArg: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user