mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			433 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			433 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,
 | |
| 		importAwait: true
 | |
| 	}
 | |
| };
 |