| 
									
										
										
										
											2020-05-26 05:14:19 +08:00
										 |  |  | /* | 
					
						
							|  |  |  | 	MIT License http://www.opensource.org/licenses/mit-license.php
 | 
					
						
							|  |  |  | 	Author Tobias Koppers @sokra | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | "use strict"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const ModuleDependency = require("../dependencies/ModuleDependency"); | 
					
						
							|  |  |  | const makeSerializable = require("../util/makeSerializable"); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-18 21:11:29 +08:00
										 |  |  | class ConsumeSharedFallbackDependency extends ModuleDependency { | 
					
						
							| 
									
										
										
										
											2023-06-13 01:24:59 +08:00
										 |  |  | 	/** | 
					
						
							|  |  |  | 	 * @param {string} request the request | 
					
						
							|  |  |  | 	 */ | 
					
						
							| 
									
										
										
										
											2020-05-26 05:14:19 +08:00
										 |  |  | 	constructor(request) { | 
					
						
							|  |  |  | 		super(request); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	get type() { | 
					
						
							| 
									
										
										
										
											2020-06-18 21:11:29 +08:00
										 |  |  | 		return "consume shared fallback"; | 
					
						
							| 
									
										
										
										
											2020-05-26 05:14:19 +08:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2020-06-18 05:03:02 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	get category() { | 
					
						
							|  |  |  | 		return "esm"; | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2020-05-26 05:14:19 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | makeSerializable( | 
					
						
							| 
									
										
										
										
											2020-06-18 21:11:29 +08:00
										 |  |  | 	ConsumeSharedFallbackDependency, | 
					
						
							|  |  |  | 	"webpack/lib/sharing/ConsumeSharedFallbackDependency" | 
					
						
							| 
									
										
										
										
											2020-05-26 05:14:19 +08:00
										 |  |  | ); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-18 21:11:29 +08:00
										 |  |  | module.exports = ConsumeSharedFallbackDependency; |