Skip to content

Commit

Permalink
correction in CONTRIBUTING.md for PARCEL_WORKERS (#1715)
Browse files Browse the repository at this point in the history
Changed debugging recommendation for `PARCEL_WORKERS` from `PARCEL_WORKERS=0` to `PARCEL_WORKERS=1` as `PARCEL_WORKERS=1` will force parcel to use the local worker in the main thread exclusively.
  • Loading branch information
RobertWHurst authored and DeMoorJasper committed Jul 12, 2018
1 parent f94c405 commit 0eb3ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -57,7 +57,7 @@ yarn test

You can set `PARCEL_WORKERS` to the number of worker processes to spawn.

**NOTE:** `PARCEL_WORKERS=0` is handy for debugging, because all code will run on the main thread. You can then place breakpoints in Asset code. (Normally these breakpoints won't trigger, because the code executes in a subprocess.)
**NOTE:** `PARCEL_WORKERS=1` is handy for debugging, because all code will run on the main thread. You can then place breakpoints in Asset code. (Normally these breakpoints won't trigger, because the code executes in a subprocess.)

**NOTE:** When developing plugins or new Asset types, run with `--no-cache` (or pass `cache: false` to `Bundler` options). Parcel uses caching by default, but during development you'll normally pass incomplete results into the cache. This can leave you wondering why you're constantly seeing old results.

Expand Down

0 comments on commit 0eb3ce4

Please sign in to comment.