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
	}
};
