Commit Graph

140 Commits

Author SHA1 Message Date
alexander.akait de6d4b2f4c style: fix 2024-06-11 16:30:09 +03:00
alexander.akait ab3e93b19e style: fix 2024-06-11 16:09:50 +03:00
alexander.akait 3e3dfd781b fix(types): more 2024-03-17 20:15:44 +03:00
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
Sayan751 7d8799ac4b
added unmanagedPaths to snapshot options 2023-10-04 23:28:11 +02:00
alexander.akait cc734af66e refactor(types): more 2023-06-22 02:45:07 +03:00
alexander.akait 4809421990 refactor(types): more 2023-06-21 19:00:24 +03:00
Shipov Mikhail c3b643aa79 feat: add readonly flag for filesystem cache 2023-05-25 03:28:39 +03:00
Ivan Kopeykin b330c93e73 release pack promise 2023-05-25 03:28:37 +03:00
Shipov Mikhail 85a963a67b feat: add readonly flag for filesystem cache 2023-05-25 03:28:35 +03:00
alexander.akait 2f066d9ff1 chore: ignore unstable coverage 2023-04-30 23:06:02 +03:00
alexander.akait 7a929533dd fix: types 2023-04-22 04:18:17 +03:00
Tobias Koppers d94145e38d show different text for build error skips 2022-03-16 15:25:32 +01:00
Tobias Koppers a9cf4808dd make cache warnings caused by build errors less verbose 2022-03-08 09:25:49 +01:00
Ivan Kopeykin 8d1e46e523 handle error/callback result in ResolverCachePlugin with yield 2022-02-22 21:21:39 +03:00
Ivan Kopeykin 93d44847bd Revert "Revert "Merge pull request #15332 from webpack/fix/context-resolve-issue-11335""
This reverts commit dd53923cd0.
2022-02-21 11:58:44 +03:00
Tobias Koppers dd53923cd0 Revert "Merge pull request #15332 from webpack/fix/context-resolve-issue-11335"
This reverts commit 89c92bf0d3, reversing
changes made to a28af55ca1.
2022-02-17 14:43:51 +01:00
Ivan Kopeykin cdfb610bfa fix restoring from cache 2022-02-08 21:40:18 +03:00
Asriel Yu 136b723023 fix callback err type should include null 2021-12-24 20:27:31 +08:00
Tobias Koppers f270f50cae use different Promise check 2021-11-02 13:42:55 +01:00
Nitin Kumar eaa8bf6335 fix: improve logic to check if value is a `Promise` 2021-11-01 21:03:02 -07:00
Jonny Burger 92d5266d22 Update PackFileCacheStrategy.js 2021-10-24 16:20:20 +02:00
Jonny Burger 6776595f40
Honor `hashFunction` option for createFileSerializer 2021-10-24 15:41:52 +02:00
Tobias Koppers 5e16d642ad allow RegExp as managed and immutable paths
add all node_modules as managedPaths in futureDefaults
2021-10-18 22:56:41 +02:00
btea 857eebe495 fix: identifier typo 2021-10-13 11:01:46 +08:00
Tobias Koppers 4a8bf4c084 allow to configure all hash functions used
fix default hash function for HttpUriPlugin to sha512
2021-09-23 14:55:13 +02:00
Tobias Koppers ff69b3f617 allow process to exist and cancel timeout again 2021-09-16 13:56:14 +02:00
Tobias Koppers 3270275ffe split fresh packs by time
add comments

fix loosing cache

correctly store a lazy
2021-09-08 16:27:55 +02:00
Tobias Koppers 492055ae90 add cache compression 2021-07-02 07:05:13 +02:00
Tobias Koppers 142bc5610f store cache after large changes
detect larger changes automatically and use shorter timeout
2021-06-28 11:35:14 +02:00
Tobias Koppers e4389a494b
Merge pull request #13467 from myNameIsDu/fix/check-promise-condition
fix:the judgment of promise is changed from instanceof to Promises/A+…
2021-06-18 12:26:02 +02:00
Tobias Koppers 3b555175e6 unreference some of the intermediate data when unserializing 2021-06-17 11:25:49 +02:00
du 946e96f476 fix:the judgment of promise is changed from instanceof to Promises/A+ standard 2021-05-29 00:53:19 +08:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 766be5a3fd add cache.profile flag for more info about (de)serialization timings 2021-04-28 09:10:43 +02:00
Tobias Koppers 0eb2f352fe fix typo
thanks @markjm
2021-04-21 07:20:11 +02:00
Tobias Koppers 177736f59c avoid leaking unused memory in buffer backing stores in development mode 2021-04-20 15:22:16 +02:00
Tobias Koppers 8f3a16a49a improve handling of optional build dependencies 2021-04-06 11:28:41 +02:00
Tobias Koppers c84329f73c add GC to the memory cache and make it configurable
memory GC happens by default when persistent cache is enabled and in development mode
otherwise memory cache is kept forever

make maxAge for persistent cache configurable
GC the oldest content file even if it's not touched (to keep cache size small)

filesystem cache will now no longer cache in memory, but restore items from disk again when it was persisted
2021-04-01 17:12:53 +02:00
Tobias Koppers 8074127b98 avoid leaking memory after the compiler has been closed
clear cache on shutdown
2021-04-01 16:59:48 +02:00
Kyle Warren f74af75a56 fixed possible collision with addAll es proposal 2021-03-11 10:59:44 -08:00
Tobias Koppers d9ef8551c0 fix caching of asset modules 2021-02-04 14:13:44 +01:00
Tobias Koppers a1515fa9f0 add experimental lazy compilation 2021-01-21 17:39:56 +01:00
Tobias Koppers c453624a57 store build deps correctly in cache
improve debug logging for snapshotting
2021-01-13 23:54:15 +01:00
highonweb bc1911bf78 Changed name of memorize function to memoize 2020-12-27 03:02:57 +05:30
Tobias Koppers c75a9ef87f errors in initial cache no longer cause build dependencies to be ignored 2020-12-15 17:06:33 +01:00
Tobias Koppers cbcd459d19 fix conflicting real imports and type imports 2020-11-26 10:02:59 +01:00
Tobias Koppers d6e637f33c add "snapshot" configuration to allow to configure how snapshots are created
expose snapshot options for module, resolve, buildDependencies and resolveBuildDependencies
move managedPaths and immutablePaths from config.cache to config.snapshot
add timestamp + hash snapshotting mode
use timestamp + hash mode by default in production and for buildDependencies
2020-08-26 01:27:13 +02:00
Tobias Koppers 4ccb35170b split cache into smaller parts 2020-08-24 18:16:55 +02:00
Tobias Koppers cee47dc867 Store cache dependencies inside of Snapshot to reduce cache size 2020-08-24 18:16:54 +02:00