| 
									
										
										
										
											2018-07-23 20:53:50 +08:00
										 |  |  | /* | 
					
						
							|  |  |  | 	MIT License http://www.opensource.org/licenses/mit-license.php
 | 
					
						
							|  |  |  | 	Author Florent Cailhol @ooflorent | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | "use strict"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** @typedef {import("webpack-sources").Source} Source */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class InitFragment { | 
					
						
							|  |  |  | 	/** | 
					
						
							| 
									
										
										
										
											2018-07-30 18:09:42 +08:00
										 |  |  | 	 * @param {string|Source} content the source code that will be included as initialization code | 
					
						
							|  |  |  | 	 * @param {number} stage category of initialization code (contribute to order) | 
					
						
							|  |  |  | 	 * @param {number} position position in the category (contribute to order) | 
					
						
							|  |  |  | 	 * @param {string=} key unique key to avoid emitting the same initialization code twice | 
					
						
							| 
									
										
										
										
											2019-05-23 02:11:16 +08:00
										 |  |  | 	 * @param {string=} endContent the source code that will be included at the end of the module | 
					
						
							| 
									
										
										
										
											2018-07-23 20:53:50 +08:00
										 |  |  | 	 */ | 
					
						
							| 
									
										
										
										
											2019-05-23 02:11:16 +08:00
										 |  |  | 	constructor(content, stage, position, key, endContent) { | 
					
						
							| 
									
										
										
										
											2018-07-23 20:53:50 +08:00
										 |  |  | 		this.content = content; | 
					
						
							| 
									
										
										
										
											2018-07-30 16:15:18 +08:00
										 |  |  | 		this.stage = stage; | 
					
						
							| 
									
										
										
										
											2018-07-30 18:09:42 +08:00
										 |  |  | 		this.position = position; | 
					
						
							| 
									
										
										
										
											2018-07-23 20:53:50 +08:00
										 |  |  | 		this.key = key; | 
					
						
							| 
									
										
										
										
											2019-05-23 02:11:16 +08:00
										 |  |  | 		this.endContent = endContent; | 
					
						
							| 
									
										
										
										
											2018-07-23 20:53:50 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-23 02:11:16 +08:00
										 |  |  | InitFragment.prototype.merge = undefined; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-30 16:15:18 +08:00
										 |  |  | InitFragment.STAGE_CONSTANTS = 10; | 
					
						
							| 
									
										
										
										
											2019-06-05 20:17:15 +08:00
										 |  |  | InitFragment.STAGE_ASYNC_BOUNDARY = 20; | 
					
						
							|  |  |  | InitFragment.STAGE_HARMONY_EXPORTS = 30; | 
					
						
							|  |  |  | InitFragment.STAGE_HARMONY_IMPORTS = 40; | 
					
						
							|  |  |  | InitFragment.STAGE_PROVIDES = 50; | 
					
						
							|  |  |  | InitFragment.STAGE_ASYNC_DEPENDENCIES = 60; | 
					
						
							| 
									
										
										
										
											2018-07-30 16:15:18 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-23 20:53:50 +08:00
										 |  |  | module.exports = InitFragment; |