Commit Graph

761 Commits

Author SHA1 Message Date
alexander.akait 4ee703f647 chore: improve jsdoc rules 2024-07-30 17:07:14 +03:00
alexander.akait 93b3008fc0 chore: improve jsdoc eslint rules 2024-07-30 15:26:24 +03:00
alexander.akait ab3e93b19e style: fix 2024-06-11 16:09:50 +03:00
alexander.akait 81f2e865a6 chore: update eslint to v9 2024-06-11 15:32:02 +03:00
ahabhgk 563c56f406 fix: consider runtime for pure expression dependency update hash 2024-06-04 15:25:43 +08:00
alexander.akait 7b4775cebe fix(types): fix some types 2024-03-21 15:16:51 +03:00
alexander.akait be1d35eb02 fix(types): more 2024-03-18 18:50:56 +03:00
alexander.akait 3e3dfd781b fix(types): more 2024-03-17 20:15:44 +03:00
alexander.akait 33cd20a180 fix(types): watching and more 2024-03-14 18:15:13 +03:00
alexander.akait 417f53ee81 fix(types): watching and more 2024-03-13 21:23:33 +03:00
alexander.akait 32717aae42 fix: all filesystem types 2024-03-11 19:33:52 +03:00
alexander.akait caea8131b3 fix: types 2024-02-22 17:36:36 +03:00
alexander.akait 6ab9bdaa73 fix: types 2024-02-22 17:20:17 +03:00
alexander.akait a1f46a9ac3 fix: types 2024-02-21 17:55:02 +03:00
alexander.akait 6cd0ddbf26 fix: types 2024-02-21 17:05:29 +03:00
alexander.akait 3e0b1b7528 fix: types for `Stats.toJson()` and `Stats.toString()` 2024-02-16 15:47:38 +03:00
alexander.akait 3295f6c36f chore(types): more 2024-01-26 19:17:45 +03:00
ahabhgk b3ea5201a5 fix 2024-01-23 18:07:58 +08:00
ahabhgk de0e5987d4 fix: error for cyclic importModule 2024-01-23 17:32:50 +08:00
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
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
Tobias Koppers f5fac83c08 clear compilation queues to reduce memory usage 2021-06-17 10:10:51 +02:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 87c0d1cd94 Merge branch 'master' into johnnyreilly/master 2021-05-07 18:07:23 +02:00
Tobias Koppers a060126e49 improve module dependency processing performance 2021-04-28 10:27:51 +02:00
Tobias Koppers 89d6dcb0e2 used cached value 2021-04-28 09:10:44 +02:00
Tobias Koppers 7cc40782b7 fix some internal types 2021-04-22 21:48:25 +02:00
Tobias Koppers 2df8267220 handle falsy entry options correctly 2021-04-14 20:21:17 +02:00
Tobias Koppers 52178a5aee
Merge pull request #13134 from webpack/bugfix/hmr-in-execute-module
importModule & HMR
2021-04-14 16:55:37 +02:00
Tobias Koppers f46e816a38 add HMR test case and fix problems with it 2021-04-14 16:03:59 +02:00
Tobias Koppers 24c5902374 add interceptModuleExecution, module cache and improve error messages 2021-04-14 14:37:00 +02:00
Tobias Koppers d808d04d26 attach the chunk graph to RuntimeModules 2021-04-14 12:26:35 +02:00
Tobias Koppers bbcc5a8ebe add caching on ModuleGraph
cache star reexport assignment
2021-04-14 09:11:23 +02:00
Tobias Koppers 03961f3391
Merge pull request #13102 from webpack/feature/built-time-execution 2021-04-12 15:00:32 +02:00
Tobias Koppers 33c862e07b emit assets from modules during executing modules 2021-04-12 12:42:25 +02:00
Tobias Koppers ea3e0a39ac add experiments.executeModule
rename runModule -> executeModule
improve error reporting
2021-04-12 12:27:55 +02:00
Tobias Koppers 1d35cf13e3 fix cache dependencies, assets and persistent caching 2021-04-12 12:27:54 +02:00
Tobias Koppers 065177df66 add experimental support for build time execution
allow to execute a part of the module graph at build time
e. g. to generate code or other assets

loaders have access to that via `this.importModule(request, options)`
2021-04-12 12:27:54 +02:00
Tobias Koppers 33b44a05ea DefinePlugin invalidates modules when new defines are added
fixes https://github.com/vercel/next.js/issues/23901
2021-04-12 12:23:51 +02:00
Tobias Koppers 324a46d908 Revert "dispose code generation results after sealing the compilation"
This reverts commit cef2a8fea0.
2021-04-09 19:50:13 +02:00