02590bfdc7 
								
							 
						 
						
							
							
								
								chore: improve types  
							
							
							
						 
						
							2023-04-21 19:22:33 +03:00  
				
					
						
							
							
								 
						
							
								fa4cbf11a1 
								
							 
						 
						
							
							
								
								add more module type constants, use them across codebase  
							
							
							
						 
						
							2023-03-31 10:56:32 -07:00  
				
					
						
							
							
								 
						
							
								dfaa3b401e 
								
							 
						 
						
							
							
								
								lint: remove trailing comma  
							
							
							
						 
						
							2023-02-07 18:11:50 -05:00  
				
					
						
							
							
								 
						
							
								dcc3e7164e 
								
							 
						 
						
							
							
								
								Serialize code generator data to support generated assets  
							
							... 
							
							
							
							AssetGenerator calls out in a TODO-comment that the filename, assetInfo,
and fullContentHash values must be captured in the 'data' object that's
populated during code generation in order to be accessible in the
AssetModulesPlugin. It notes that it must store them in the code
generation results because it will be cached, but that appears to be
incorrect as data is a simple Map that's instantiated within the
NormalModule and not captured anywhere that would be cached.
As a result, configurations that use the asset/resource type and make
changes to assets between cached builds will result in a runtime error
as Webpack is able to access the file from cache but isn't able to
access the expected values from the data object.
This solution captures the data object as a property of the NormalModule
and hooks in to the existing serialize/deserialize functionality in
order to make this value available across cached builds. 
							
						 
						
							2023-02-07 17:54:09 -05:00  
				
					
						
							
							
								 
						
							
								ba95d08875 
								
							 
						 
						
							
							
								
								chore(deps): replace `json-parse-better-errors` to `json-parse-even-better-errors`  
							
							
							
						 
						
							2022-04-16 15:01:53 +03:00  
				
					
						
							
							
								 
						
							
								c38caa2d82 
								
							 
						 
						
							
							
								
								Merge pull request  #15515  from webpack/feat/concatenate-assets  
							
							... 
							
							
							
							add asset modules concatenation 
							
						 
						
							2022-04-04 16:04:20 +02:00  
				
					
						
							
							
								 
						
							
								3f1715f8d8 
								
							 
						 
						
							
							
								
								generate only needed source types  
							
							... 
							
							
							
							- in ConcatenatedModule generate only js
- in NormalModule generate only used sources 
							
						 
						
							2022-03-17 13:00:39 +03:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								c09d86961d 
								
							 
						 
						
							
							
								
								add NormalModuleFactory hooks types  
							
							
							
						 
						
							2022-02-15 18:25:44 +03:00  
				
					
						
							
							
								 
						
							
								c41eb368f2 
								
							 
						 
						
							
							
								
								Merge pull request  #15182  from webpack/bugfix/lib-ident-includes-layer  
							
							... 
							
							
							
							Module.libIdent is scoped by the module layer if there is one 
							
						 
						
							2022-01-18 09:59:01 +01:00  
				
					
						
							
							
								 
						
							
								6b83f85141 
								
							 
						 
						
							
							
								
								Module.libIdent is scoped by the module layer if there is one  
							
							
							
						 
						
							2022-01-14 12:05:28 +01:00  
				
					
						
							
							
								 
						
							
								136b723023 
								
							 
						 
						
							
							
								
								fix callback err type should include null  
							
							
							
						 
						
							2021-12-24 20:27:31 +08:00  
				
					
						
							
							
								 
						
							
								77b5589c1a 
								
							 
						 
						
							
							
								
								css generation and hmr  
							
							
							
						 
						
							2021-12-03 08:46:22 +01:00  
				
					
						
							
							
								 
						
							
								a6bb3e58ec 
								
							 
						 
						
							
							
								
								default to the default hash function  
							
							
							
						 
						
							2021-10-28 15:32:06 +02:00  
				
					
						
							
							
								 
						
							
								dcf3b02aaf 
								
							 
						 
						
							
							
								
								add wasm md4 implementation  
							
							... 
							
							
							
							expose createHash is loader context 
							
						 
						
							2021-10-28 00:07:26 +02:00  
				
					
						
							
							
								 
						
							
								5d9cab64d9 
								
							 
						 
						
							
							
								
								Merge pull request  #14384  from swissmanu/fix-normalmodule-beforeLoaders-hook  
							
							... 
							
							
							
							Initialize buildDependencies after beforeLoaders Hook 
							
						 
						
							2021-10-22 09:56:24 +02:00  
				
					
						
							
							
								 
						
							
								8e53818939 
								
							 
						 
						
							
							
								
								Initialize buildDependencies after beforeLoaders Hook  
							
							
							
						 
						
							2021-10-21 13:25:45 +02:00  
				
					
						
							
							
								 
						
							
								8f341ebaf8 
								
							 
						 
						
							
							
								
								add hooks during module build  
							
							
							
						 
						
							2021-10-18 23:35:55 +02:00  
				
					
						
							
							
								 
						
							
								877cb13806 
								
							 
						 
						
							
							
								
								fix missing restore of resourceResolveData  
							
							... 
							
							
							
							fixes  #14176  
						
							2021-10-18 09:25:00 +02:00  
				
					
						
							
							
								 
						
							
								508e8d50f2 
								
							 
						 
						
							
							
								
								expand readResource hook to cover normal file reading  
							
							
							
						 
						
							2021-10-07 10:28:44 +02:00  
				
					
						
							
							
								 
						
							
								c76be4d738 
								
							 
						 
						
							
							
								
								make some things context-independent  
							
							... 
							
							
							
							* ConcatenatedModule.identifier()
* NormalModule source urls
fixes  #14014  
							
						 
						
							2021-08-19 14:57:39 +02:00  
				
					
						
							
							
								 
						
							
								720aa43bd3 
								
							 
						 
						
							
							
								
								handle hashbangs in javascript files  
							
							... 
							
							
							
							fixes https://github.com/vercel/next.js/issues/27806  
							
						 
						
							2021-08-10 11:34:06 +02:00  
				
					
						
							
							
								 
						
							
								9bf6797416 
								
							 
						 
						
							
							
								
								fix resolving context for redirects  
							
							
							
						 
						
							2021-08-05 21:10:39 +02:00  
				
					
						
							
							
								 
						
							
								b6609a4f6b 
								
							 
						 
						
							
							
								
								add `experiments.buildHttp`  
							
							... 
							
							
							
							allows to build remote resources
stores remote resources in a lockfile 
							
						 
						
							2021-08-05 15:47:18 +02:00  
				
					
						
							
							
								 
						
							
								6c50c81350 
								
							 
						 
						
							
							
								
								Revert "Revert "Merge pull request  #12278  from xtuc/sven/import-assertions""  
							
							... 
							
							
							
							This reverts commit 61946b7c46 
							
						 
						
							2021-07-24 23:28:30 +01:00  
				
					
						
							
							
								 
						
							
								cdc9efefbe 
								
							 
						 
						
							
							
								
								avoid copying source types and sizes cache from unsafe cache to cached module  
							
							... 
							
							
							
							fixes  #13827 
avoid pre-computing source types and sizes on cleanup for not-built modules (e. g. from unsafe cache)
improve eror message when asset rendering fails 
						
							2021-07-22 09:52:56 +02:00  
				
					
						
							
							
								 
						
							
								61946b7c46 
								
							 
						 
						
							
							
								
								Revert "Merge pull request  #12278  from xtuc/sven/import-assertions"  
							
							... 
							
							
							
							This reverts commit df02bc6c0aa6f341e243 
							
						 
						
							2021-07-16 21:54:21 +02:00  
				
					
						
							
							
								 
						
							
								7f22e4721f 
								
							 
						 
						
							
							
								
								match on asserts  
							
							... 
							
							
							
							change Map to Record
improve test case 
							
						 
						
							2021-07-16 13:17:20 +02:00  
				
					
						
							
							
								 
						
							
								ecf87288d5 
								
							 
						 
						
							
							
								
								perf: Remove Error.captureStackTrace from all WebpackErrors  
							
							
							
						 
						
							2021-06-07 07:15:28 +00:00  
				
					
						
							
							
								 
						
							
								fe6d28dd16 
								
							 
						 
						
							
							
								
								Merge pull request  #13412  from webpack/bugfix/watcher-invalidate-and-changes  
							
							... 
							
							
							
							track changes and removals correctly during watching 
							
						 
						
							2021-05-20 15:53:52 +02:00  
				
					
						
							
							
								 
						
							
								8e9daad216 
								
							 
						 
						
							
							
								
								track changes and removals correctly  
							
							... 
							
							
							
							purge filesystem correctly 
							
						 
						
							2021-05-19 19:06:58 +02:00  
				
					
						
							
							
								 
						
							
								973edfbd1b 
								
							 
						 
						
							
							
								
								support data urls as input in `new URL`  
							
							
							
						 
						
							2021-05-19 11:30:09 +02:00  
				
					
						
							
							
								 
						
							
								9e7062f5e6 
								
							 
						 
						
							
							
								
								fixes   #13330  
							
							
							
						 
						
							2021-05-18 16:54:16 +02:00  
				
					
						
							
							
								 
						
							
								b0fa9ccada 
								
							 
						 
						
							
							
								
								pretty files  
							
							
							
						 
						
							2021-05-11 09:31:46 +02:00  
				
					
						
							
							
								 
						
							
								77f625ab09 
								
							 
						 
						
							
							
								
								upgrade tooling and update types.d.ts  
							
							... 
							
							
							
							fixed SourceMap
import Schema from validate function 
							
						 
						
							2021-05-07 18:01:45 +02:00  
				
					
						
							
							
								 
						
							
								b71e0ced35 
								
							 
						 
						
							
							
								
								Merge branch 'master' into johnnyreilly/master  
							
							
							
						 
						
							2021-04-22 21:52:48 +02:00  
				
					
						
							
							
								 
						
							
								7cc40782b7 
								
							 
						 
						
							
							
								
								fix some internal types  
							
							
							
						 
						
							2021-04-22 21:48:25 +02:00  
				
					
						
							
							
								 
						
							
								40a5eb17fe 
								
							 
						 
						
							
							
								
								tried generic workarouuund  
							
							
							
						 
						
							2021-04-20 09:18:59 +01:00  
				
					
						
							
							
								 
						
							
								df44d7d8b7 
								
							 
						 
						
							
							
								
								attempt @sokras suggestion  
							
							
							
						 
						
							2021-04-20 06:05:54 +01:00  
				
					
						
							
							
								 
						
							
								a2f8808fee 
								
							 
						 
						
							
							
								
								apply @sokra's feedback and include runtime type  
							
							
							
						 
						
							2021-04-19 19:30:58 +01:00  
				
					
						
							
							
								 
						
							
								586d013b91 
								
							 
						 
						
							
							
								
								feat: LoaderContext type  
							
							
							
						 
						
							2021-04-16 19:28:30 +01:00  
				
					
						
							
							
								 
						
							
								e21b1d46fe 
								
							 
						 
						
							
							
								
								precompile schemas for improved startup performance  
							
							
							
						 
						
							2021-04-16 16:02:58 +02:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								87b67a920d 
								
							 
						 
						
							
							
								
								avoid memory leak in v8 ICs after parsing and building modules  
							
							
							
						 
						
							2021-03-25 14:52:12 +01:00  
				
					
						
							
							
								 
						
							
								9566a5b732 
								
							 
						 
						
							
							
								
								fix(NormalModule): call super to restore base module cache data  
							
							
							
						 
						
							2021-03-23 16:44:03 -07:00  
				
					
						
							
							
								 
						
							
								9c648cf90f 
								
							 
						 
						
							
							
								
								improve error handling in beforeLoaders hook  
							
							
							
						 
						
							2021-03-22 10:17:17 +01:00  
				
					
						
							
							
								 
						
							
								ecb2c18cc6 
								
							 
						 
						
							
							
								
								offer contextify and absoluteify in loader context as utils  
							
							
							
						 
						
							2021-03-19 10:59:10 +01:00  
				
					
						
							
							
								 
						
							
								5af7e54e7d 
								
							 
						 
						
							
							
								
								Merge pull request  #12896  from webpack/feature/define-cache-version  
							
							... 
							
							
							
							DefinePlugin takes care of module invalidation when values have changed 
							
						 
						
							2021-03-15 16:14:35 +01:00  
				
					
						
							
							
								 
						
							
								103a51468b 
								
							 
						 
						
							
							
								
								DefinePlugin takes care of module invalidation when values have changed  
							
							... 
							
							
							
							The options of the DefinePlugin no longer have to be covered by build dependencies 
							
						 
						
							2021-03-15 15:19:42 +01:00  
				
					
						
							
							
								 
						
							
								18967078cb 
								
							 
						 
						
							
							
								
								cleanup modules after compilation to avoid leaking references when they are cached  
							
							
							
						 
						
							2021-03-15 11:23:54 +01:00