| 
									
										
										
										
											2017-10-17 15:06:05 +08:00
										 |  |  | /* | 
					
						
							|  |  |  | 	MIT License http://www.opensource.org/licenses/mit-license.php
 | 
					
						
							|  |  |  | 	Author Sean Larkin @thelarkinn | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | "use strict"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const WebpackError = require("./WebpackError"); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-19 23:41:56 +08:00
										 |  |  | module.exports = class AsyncDependencyToInitialChunkError extends WebpackError { | 
					
						
							| 
									
										
										
										
											2017-10-17 15:06:05 +08:00
										 |  |  | 	constructor(chunkName, module, loc) { | 
					
						
							|  |  |  | 		super(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-19 23:41:56 +08:00
										 |  |  | 		this.name = "AsyncDependencyToInitialChunkError"; | 
					
						
							| 
									
										
										
										
											2018-03-26 22:56:10 +08:00
										 |  |  | 		this.message = `It's not allowed to load an initial chunk on demand. The chunk name "${chunkName}" is already used by an entrypoint.`; | 
					
						
							| 
									
										
										
										
											2017-10-17 15:06:05 +08:00
										 |  |  | 		this.module = module; | 
					
						
							|  |  |  | 		this.origin = module; | 
					
						
							|  |  |  | 		this.originLoc = loc; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		Error.captureStackTrace(this, this.constructor); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | }; |