| 
									
										
										
										
											2025-07-16 22:29:28 +08:00
										 |  |  | "use strict"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-19 06:25:38 +08:00
										 |  |  | /** @type {import("../../../../").Configuration[]} */ | 
					
						
							| 
									
										
										
										
											2024-11-14 08:01:30 +08:00
										 |  |  | module.exports = [ | 
					
						
							|  |  |  | 	{ | 
					
						
							| 
									
										
										
										
											2025-09-19 06:25:38 +08:00
										 |  |  | 		name: "web", | 
					
						
							| 
									
										
										
										
											2024-11-14 08:01:30 +08:00
										 |  |  | 		target: ["web", "node"], | 
					
						
							|  |  |  | 		module: { | 
					
						
							|  |  |  | 			rules: [ | 
					
						
							|  |  |  | 				{ | 
					
						
							|  |  |  | 					test: /\.wat$/, | 
					
						
							|  |  |  | 					loader: "wast-loader", | 
					
						
							|  |  |  | 					type: "webassembly/async" | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			] | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		output: { | 
					
						
							|  |  |  | 			webassemblyModuleFilename: "[id].[hash].wasm" | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		experiments: { | 
					
						
							|  |  |  | 			outputModule: true, | 
					
						
							|  |  |  | 			asyncWebAssembly: true | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	}, | 
					
						
							|  |  |  | 	{ | 
					
						
							| 
									
										
										
										
											2025-09-19 06:25:38 +08:00
										 |  |  | 		name: "node", | 
					
						
							| 
									
										
										
										
											2024-11-14 08:01:30 +08:00
										 |  |  | 		target: ["web", "node"], | 
					
						
							|  |  |  | 		module: { | 
					
						
							|  |  |  | 			rules: [ | 
					
						
							|  |  |  | 				{ | 
					
						
							|  |  |  | 					test: /\.wat$/, | 
					
						
							|  |  |  | 					loader: "wast-loader", | 
					
						
							|  |  |  | 					type: "webassembly/async" | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			] | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		output: { | 
					
						
							|  |  |  | 			webassemblyModuleFilename: "[id].[hash].wasm" | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		experiments: { | 
					
						
							|  |  |  | 			outputModule: true, | 
					
						
							|  |  |  | 			asyncWebAssembly: true | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | ]; |