| 
									
										
										
										
											2013-10-11 16:42:25 +08:00
										 |  |  | /* | 
					
						
							|  |  |  | 	MIT License http://www.opensource.org/licenses/mit-license.php
 | 
					
						
							|  |  |  | 	Author Tobias Koppers @sokra | 
					
						
							|  |  |  | */ | 
					
						
							| 
									
										
										
										
											2018-07-30 23:08:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-05 00:48:53 +08:00
										 |  |  | "use strict"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-25 05:17:47 +08:00
										 |  |  | const WebpackError = require("./WebpackError"); | 
					
						
							| 
									
										
										
										
											2017-01-05 00:48:53 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-09 02:25:56 +08:00
										 |  |  | /** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */ | 
					
						
							| 
									
										
										
										
											2018-08-21 17:02:16 +08:00
										 |  |  | /** @typedef {import("./Module")} Module */ | 
					
						
							| 
									
										
										
										
											2018-08-09 02:25:56 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-25 05:17:47 +08:00
										 |  |  | class UnsupportedFeatureWarning extends WebpackError { | 
					
						
							| 
									
										
										
										
											2018-08-09 02:25:56 +08:00
										 |  |  | 	/** | 
					
						
							|  |  |  | 	 * @param {Module} module module relevant to warning | 
					
						
							|  |  |  | 	 * @param {string} message description of warning | 
					
						
							|  |  |  | 	 * @param {DependencyLocation} loc location start and end positions of the module | 
					
						
							|  |  |  | 	 */ | 
					
						
							| 
									
										
										
										
											2018-06-04 16:10:23 +08:00
										 |  |  | 	constructor(module, message, loc) { | 
					
						
							|  |  |  | 		super(message); | 
					
						
							| 
									
										
										
										
											2017-02-17 00:16:47 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-05 00:48:53 +08:00
										 |  |  | 		this.name = "UnsupportedFeatureWarning"; | 
					
						
							| 
									
										
										
										
											2018-06-04 16:10:23 +08:00
										 |  |  | 		this.module = module; | 
					
						
							|  |  |  | 		this.loc = loc; | 
					
						
							|  |  |  | 		this.hideStack = true; | 
					
						
							| 
									
										
										
										
											2017-02-17 00:16:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		Error.captureStackTrace(this, this.constructor); | 
					
						
							| 
									
										
										
										
											2017-01-05 00:48:53 +08:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2013-10-11 16:42:25 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-05 00:48:53 +08:00
										 |  |  | module.exports = UnsupportedFeatureWarning; |