File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,7 @@ function getChangedFiles(compiler: webpack.Compiler): string[] {
15
15
changedFiles = Object . keys ( ( watcher && watcher . mtimes ) || { } ) ;
16
16
}
17
17
18
- return (
19
- changedFiles
20
- // normalize paths
21
- . map ( ( changedFile ) => path . normalize ( changedFile ) )
22
- // check if path is inside the context to filer-out some trash from fs
23
- . filter (
24
- ( changedFile ) =>
25
- ! compiler . options . context ||
26
- changedFile . startsWith ( path . normalize ( compiler . options . context ) )
27
- )
28
- ) ;
18
+ return changedFiles . map ( ( changedFile ) => path . normalize ( changedFile ) ) ;
29
19
}
30
20
31
21
export { getChangedFiles } ;
Original file line number Diff line number Diff line change @@ -17,17 +17,7 @@ function getDeletedFiles(
17
17
deletedFiles = [ ...state . removedFiles ] ;
18
18
}
19
19
20
- return (
21
- deletedFiles
22
- // normalize paths
23
- . map ( ( changedFile ) => path . normalize ( changedFile ) )
24
- // check if path is inside the context to filer-out some trash from fs
25
- . filter (
26
- ( changedFile ) =>
27
- ! compiler . options . context ||
28
- changedFile . startsWith ( path . normalize ( compiler . options . context ) )
29
- )
30
- ) ;
20
+ return deletedFiles . map ( ( changedFile ) => path . normalize ( changedFile ) ) ;
31
21
}
32
22
33
23
export { getDeletedFiles } ;
You can’t perform that action at this time.
0 commit comments