Repository navigation
Commit 51058cd
authored
refactor: group the filesystem into lib/fs and ProgressPlugin into lib/logging (#22228)
* refactor: move ProgressPlugin into lib/logging
It reports a build's progress through the same console surface the logger
writes to, and already reached for `terminalColors` to do it.
`lib/ProgressPlugin` stays as a re-export: webpack-stream declares
`webpack ^5.21.2` and requires the path at the top of its index.js.
* refactor: group the filesystem into lib/fs
`fs.js` declares the `InputFileSystem` / `OutputFileSystem` surface every
caller is typed against and the path helpers built on it; `FileSystemInfo`
records the snapshots, timestamps and build dependencies a watch or a cache
decides staleness from. They are one subject, so they get one directory.
A filesystem a target supplies is not one of these — `NodeWatchFileSystem`
stays in `lib/node/`.
`lib/FileSystemInfo` stays as a re-export, since html-webpack-plugin
declares `webpack ^5.20.0` and types against the path. `Snapshot` keeps its
old serializer request restorable through `registerLegacyRequest`, so a
pre-move cache pack still loads.1 parent 0e0bd79 commit 51058cd
79 files changed
Lines changed: 5712 additions & 5681 deletions
File tree
- lib
- asset
- cache
- config
- container
- context
- debug
- define
- dependencies
- devtool
- dll
- externals
- fs
- hmr
- ids
- json
- logging
- module
- node
- optimize
- output
- performance
- resolve
- runtime
- schemes
- serialization
- sharing
- util
- watch
- schemas
- plugins
- test
- configCases
- asset-modules/webpack-ignore
- copy/unreadable
- defer-import/json-import-attributes
- unitCases
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
| |||
126 | 133 | | |
127 | 134 | | |
128 | 135 | | |
129 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
0 commit comments