Commit Graph

692 Commits

Author SHA1 Message Date
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
alexander.akait 8273948d9d chore: improve eslint configuration 2024-01-13 16:35:31 +03:00
Alexander Akait 39bbfbfbb1
feat: support for unmanaged paths 2024-01-04 16:07:29 +03:00
Alexander Akait c1b45d5d80
fix: runtime logic 2024-01-04 15:47:05 +03:00
Sayan751 7d8799ac4b
added unmanagedPaths to snapshot options 2023-10-04 23:28:11 +02:00
Tan Li Hau e5e66ef1bf fix: miss passing errors array 2023-08-28 16:12:33 +08:00
alexander.akait 4809421990 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait 60e5e13eb8 refactor: more types 2023-05-25 01:41:32 +03:00
Burhanuddin Udaipurwala 2b4d15a7ba refactor: more instances replaced 2023-05-19 21:30:54 +05:30
Sean Larkin 1b6b741b96 docs(types): Add docs for compilation.afterChunks hook 2023-05-16 22:34:18 +00:00
Sean Larkin e958ac552b refactor(types): Improve module type strictness and refactor module type string usages in module subclasses 2023-05-04 23:19:11 +00:00
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
xiaoxiaojx 3902ac5ffc fix: fix pureDep returns null in some js files 2023-02-09 14:16:25 +08: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