Commit 9b31ac8
authored
fix: do not hook assetEmitted when writeToDisk is true (#1)
When `writeToDisk: true`, `setupOutputFileSystem` already configures
webpack to use the native (disk) output file system, so webpack writes
all assets to disk itself. Calling `setupWriteToDisk` on top of that
tapped `assetEmitted` and wrote every file a second time.
Only invoke `setupWriteToDisk` when `writeToDisk` is a filter function,
where the in-memory fs is still used and selective disk writes are
needed.
Fixes #22701 parent 112de09 commit 9b31ac8
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4056 | 4056 | | |
4057 | 4057 | | |
4058 | 4058 | | |
4059 | | - | |
| 4059 | + | |
4060 | 4060 | | |
4061 | 4061 | | |
4062 | 4062 | | |
| |||
4068 | 4068 | | |
4069 | 4069 | | |
4070 | 4070 | | |
4071 | | - | |
| 4071 | + | |
4072 | 4072 | | |
4073 | 4073 | | |
4074 | 4074 | | |
| |||
4154 | 4154 | | |
4155 | 4155 | | |
4156 | 4156 | | |
4157 | | - | |
| 4157 | + | |
4158 | 4158 | | |
4159 | 4159 | | |
4160 | 4160 | | |
| |||
4166 | 4166 | | |
4167 | 4167 | | |
4168 | 4168 | | |
4169 | | - | |
| 4169 | + | |
4170 | 4170 | | |
4171 | 4171 | | |
4172 | 4172 | | |
| |||
0 commit comments