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