Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix typo: this.addWatchfile (#3390)
  • Loading branch information
mistlog committed Feb 17, 2020
1 parent 6f28151 commit 5779af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/05-plugin-development.md
Expand Up @@ -424,7 +424,7 @@ Adds additional files to be monitored in watch mode so that changes to these fil

**Note:** Usually in watch mode to improve rebuild speed, the `transform` hook will only be triggered for a given module if its contents actually changed. Using `this.addWatchFile` from within the `transform` hook will make sure the `transform` hook is also reevaluated for this module if the watched file changes.

In general, it is recommended to use `this.addWatchfile` from within the hook that depends on the watched file.
In general, it is recommended to use `this.addWatchFile` from within the hook that depends on the watched file.

#### `this.emitFile(emittedFile: EmittedChunk | EmittedAsset) => string`

Expand Down

0 comments on commit 5779af6

Please sign in to comment.