4 Commits

Author SHA1 Message Date
dbff40819f 1.0.5 2020-07-08 00:48:45 +00:00
67822b36d3 fix(core): update 2020-07-08 00:48:45 +00:00
f1d348bb6a 1.0.4 2020-07-07 20:07:22 +00:00
fab41e358c fix(core): update 2020-07-07 20:07:21 +00:00
3 changed files with 11 additions and 4 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartparcel",
"version": "1.0.3",
"version": "1.0.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartparcel",
"version": "1.0.3",
"version": "1.0.5",
"private": false,
"description": "a wrapper for parcel",
"main": "dist_ts/index.js",

View File

@@ -40,11 +40,18 @@ 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();
const bundle = await bundler.bundle().catch(e => {
console.error(e);
throw e;
});
}
constructor(fromArg: string | string[], outputDirArg: string, outputFileArg: string) {