mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			413 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			413 B
		
	
	
	
		
			JavaScript
		
	
	
	
module.exports = {
 | 
						|
	// mode: "development" || "production",
 | 
						|
	output: {
 | 
						|
		publicPath: "dist/"
 | 
						|
	},
 | 
						|
	module: {
 | 
						|
		rules: [
 | 
						|
			{
 | 
						|
				test: /\.wat$/,
 | 
						|
				use: "wast-loader",
 | 
						|
				type: "webassembly/async"
 | 
						|
			}
 | 
						|
		]
 | 
						|
	},
 | 
						|
	optimization: {
 | 
						|
		chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only)
 | 
						|
	},
 | 
						|
	experiments: {
 | 
						|
		asyncWebAssembly: true,
 | 
						|
		topLevelAwait: true
 | 
						|
	}
 | 
						|
};
 |