(platforms)
| 43 | } |
| 44 | |
| 45 | watch(platforms) { |
| 46 | if (!this._watchFiles || !this._onChange) { |
| 47 | return; |
| 48 | } |
| 49 | |
| 50 | const watcher = watch({ |
| 51 | files: typeof this._watchFiles === 'function' ? |
| 52 | this._watchFiles() : |
| 53 | this._watchFiles, |
| 54 | onChange: async (files) => { |
| 55 | await this._measureTime( |
| 56 | () => this._onChange(files, watcher, platforms) |
| 57 | ); |
| 58 | }, |
| 59 | }); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | /** |
nothing calls this directly
no test coverage detected