mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			800 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			800 B
		
	
	
	
		
			JavaScript
		
	
	
	
| /*
 | |
| 	MIT License http://www.opensource.org/licenses/mit-license.php
 | |
| 	Author Arka Pratim Chaudhuri @arkapratimc
 | |
| */
 | |
| 
 | |
| "use strict";
 | |
| 
 | |
| const WebpackError = require("./WebpackError");
 | |
| 
 | |
| class FalseIIFEUmdWarning extends WebpackError {
 | |
| 	constructor() {
 | |
| 		super();
 | |
| 		this.name = "FalseIIFEUmdWarning";
 | |
| 		this.message =
 | |
| 			"Configuration:\nSetting 'output.iife' to 'false' is incompatible with 'output.library.type' set to 'umd'. This configuration may cause unexpected behavior, as UMD libraries are expected to use an IIFE (Immediately Invoked Function Expression) to support various module formats. Consider setting 'output.iife' to 'true' or choosing a different 'library.type' to ensure compatibility.\nLearn more: https://webpack.js.org/configuration/output/";
 | |
| 	}
 | |
| }
 | |
| 
 | |
| module.exports = FalseIIFEUmdWarning;
 |