Skip to content

Commit

Permalink
Fix incorrect watcher event documentation (#4191)
Browse files Browse the repository at this point in the history
The watcher event has an `output` property, not an `outputFiles` property
  • Loading branch information
plmrry committed Jul 27, 2021
1 parent f90e1a2 commit 824c53f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/02-javascript-api.md
Expand Up @@ -181,11 +181,11 @@ watcher.on('event', event => {
// START — the watcher is (re)starting
// BUNDLE_START — building an individual bundle
// * event.input will be the input options object if present
// * event.outputFiles cantains an array of the "file" or
// * event.output contains an array of the "file" or
// "dir" option values of the generated outputs
// BUNDLE_END — finished building a bundle
// * event.input will be the input options object if present
// * event.outputFiles cantains an array of the "file" or
// * event.output contains an array of the "file" or
// "dir" option values of the generated outputs
// * event.duration is the build duration in milliseconds
// * event.result contains the bundle object that can be
Expand Down

0 comments on commit 824c53f

Please sign in to comment.