"use strict";

/** @type {import("webpack").Configuration} */
const config = {
	// 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
	}
};

module.exports = config;
