alexander.akait
2f066d9ff1
chore: ignore unstable coverage
2023-04-30 23:06:02 +03:00
Sean Larkin
b9f96bfae7
refactor(MapHelpers): rename provide to getOrInsert and add few comments for clarity
2023-04-25 20:45:43 +00:00
Tobias Koppers
dfdd0b0e42
Merge pull request #16122 from AnmolBansalDEV/bug/compilationCallback
...
I want to resolve#16045 , I made relevant changes mentioned in the issue. let me know if any additional changes are required
2022-11-09 13:25:45 +01:00
KurumiRin
946f98ea89
fix: block unnecessary runCodeGenerationJobsy
2022-08-25 00:24:28 +08:00
Anmol Bansal
828722dcbb
bug fix, implement solution mentioned in issue #16045
2022-08-06 15:52:33 +05:30
Ivan Kopeykin
cc0cd60909
more informative error when emitting multiple assets
2022-06-01 10:23:47 +03:00
Ivan Kopeykin
cf5fc90082
support context in Dependency
2022-03-25 17:01:48 +03:00
Tobias Speicher
8f56fcba72
Replace deprecated String.prototype.substr()
...
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr ) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-13 22:54:18 +01:00
Tobias Koppers
0d685d4e0b
Merge pull request #15413 from cool-little-fish/fix-15274
...
fix: use relative path in source map for context module
2022-03-08 08:07:54 +01:00
Tobias Koppers
15f8ba45c8
nitpick
2022-02-22 12:27:50 +01:00
Tobias Koppers
224964601d
improve hashing
2022-02-22 12:23:24 +01:00
成仕伟
14478b90c8
fix: use relative path in source map for context module
2022-02-19 01:02:31 +08:00
Ivan Kopeykin
cd3ec1da92
refactor top level declarations usage
2022-02-11 17:59:35 +03:00
Tobias Koppers
91dd188e01
Merge pull request #15187 from forivall/fix/addChunkInGroup-typings
...
fix: revise call signature of addChunkInGroup
2022-01-19 09:00:48 +01:00
Emily M Klassen
d5bb62b68e
doc: improve definition of addChunkInGroup via jsdoc
2022-01-18 15:44:17 -08:00
Ivan Kopeykin
453643af6d
provide hashFunction parameter to DependencyTemplates
2022-01-18 13:42:13 +03:00
Asriel Yu
136b723023
fix callback err type should include null
2021-12-24 20:27:31 +08:00
Tobias Koppers
8ae9507196
add support for url() in css
2021-12-03 08:46:24 +01:00
Tobias Koppers
77b5589c1a
css generation and hmr
2021-12-03 08:46:22 +01:00
Tobias Koppers
393fb6e22c
fix a bug with experiments.cacheUnaffected
...
that causes missing invalidation for modules when only the module id has changed
2021-11-09 10:51:09 +01:00
Tobias Koppers
7afcc5d4ff
allow to disable some deprecations
...
add `experiments.backCompat: false` (default in `experiments.futureDefaults`)
remove unused `experiments.asset`
enable `experiments.topLevelAwait` and `experiments.asyncWebAssembly` by default in `experiments.futureDefaults`
2021-11-05 09:54:51 +01:00
Tobias Koppers
8e283053c8
Merge pull request #14512 from h4l/bugfix/false-build-cycle-error
...
Fix incorrect BuildCycleError when loadModule() loads a module more than once
2021-10-19 00:22:34 +02:00
Hal Blackburn
8f2c266966
fix build cycle detection in Compilation
...
When tracking the modules which are being built by an origin module,
the code mistakenly adds the origin module itself to the set of modules
it's building, instead of the actual module about to be built. As a
result, when a module build finishes (and the module has itself called
loadModule()), it remains marked as building itself. So if it gets
loaded again, a BuildCycleError is reported despite no cycle existing.
Fixes #14379
2021-10-18 20:24:04 +01:00
Tobias Koppers
8a6fb50c6b
avoid waiting for add module since that is not used with unsafe cache
...
fixes #14484
2021-10-18 12:42:49 +02:00
Tobias Koppers
80b1e77705
fix duplication due to unsafe cache
2021-10-12 22:46:50 +02:00
Tobias Koppers
1ee6f808d3
Revert "track chunk combinations for modules"
...
This reverts commit 0e13c7dea4
.
2021-10-08 15:08:48 +02:00
Tobias Koppers
049b859879
compute depth faster
2021-10-07 16:13:42 +02:00
Tobias Koppers
0e13c7dea4
track chunk combinations for modules
...
improves caching
improves SplitChunksPlugin
2021-10-07 15:43:27 +02:00
Tobias Koppers
1e5abcc51b
improve extractBlockModules
2021-10-06 15:39:21 +02:00
Tobias Koppers
2934fd0e3c
add timing to second affected module computation
2021-10-06 10:24:12 +02:00
Tobias Koppers
07ad896f7a
bugfix cacheUnaffected
2021-10-05 20:15:04 +02:00
Tobias Koppers
f05246efcb
use buildInfo instead of hash for cacheUnaffected
2021-10-05 15:09:39 +02:00
Tobias Koppers
91b6972144
add memCache2 for mem caching with module/chunk ids
2021-10-05 15:08:18 +02:00
Tobias Koppers
61569e26b9
compare references modules when restoring mem cache
2021-09-29 09:09:42 +02:00
Tobias Koppers
6c6e48c382
avoid RuntimeSpecMap in favor of directly setting on memCache
2021-09-29 00:06:44 +02:00
Tobias Koppers
a82ab66fc1
fix accidentically shared mem caches
2021-09-28 23:52:25 +02:00
Tobias Koppers
931d14615f
move unsafe cache from NormalModuleFactory to Compilation to skip more processing
2021-09-28 11:37:29 +02:00
Tobias Koppers
c33a64bb23
enable to use mem cache for dependency caching
2021-09-27 20:41:24 +02:00
Tobias Koppers
16fc4bb7af
allow dependencies to select level of propagation
2021-09-27 20:38:08 +02:00
Tobias Koppers
2393892434
assign each module it's own mem cache
...
instead of receiving a per module node per access
2021-09-27 20:37:30 +02:00
Tobias Koppers
3b48429eb5
add MemCache for memory caching per module which is invalidated when module or any referenced modules changes
...
add `experiments.cacheUnaffected`
add `cache.cacheUnaffected` (type: memory) resp `cache.memoryCacheUnaffected` (type: filesystem)
2021-09-24 15:23:29 +02: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
b16568a253
upgrade filename runtime module to full hash module when referencing a full hash chunk
2021-09-02 10:29:59 +02:00
hdineen
c3e4e17322
Pass module to `Compilation.addModuleChain` callback when applicable
...
Although the callbacks for the `addModuleChain` and `addModuleTree` methods
are of type `ModuleCallback`, the `result` parameter is always `undefined`.
2021-08-16 15:40:35 -04:00
Tobias Koppers
c6856e2204
optional modules will not fail the build when bail is set
...
fixes #11594
2021-08-06 12:09:55 +02:00
Tobias Koppers
b6609a4f6b
add `experiments.buildHttp`
...
allows to build remote resources
stores remote resources in a lockfile
2021-08-05 15:47:18 +02:00
Tobias Koppers
0ae059fb3f
limit the number of parallel generated chunks
2021-08-05 10:57:53 +02:00
Tobias Koppers
8dd38f5c8a
refactor
2021-07-16 13:05:18 +02:00
Mark Molinaro
41f02f947a
perf: let Compiler worry about and manage file and context timestamps
2021-07-13 22:13:40 +00:00
Tobias Koppers
273bd8f575
move defineRemovedModuleTemplates into separate function as it leaks memory in the feedback vectors
2021-06-17 10:11:24 +02:00