NTS}}
		engine_arguments: ["{{DEFOLD_ENGINE_ARGUMENTS}}"],
		{{/HAS_DEFOLD_ENGINE_ARGUMENTS}}
		splash_image: "{{DEFOLD_SPLASH_IMAGE}}",
		custom_heap_size: {{DEFOLD_HEAP_SIZE}}
	}

	Module['onRuntimeInitialized'] = function() {
		Module.runApp("canvas", extra_params);
	};

	Module["locateFile"] = function(path, scriptDirectory)
	{
		// dmengine*.wasm is hardcoded in the built JS loader for WASM,
		// we need to replace it here with the correct project name.
		if (path == "dmengine.wasm" || path == "dmengin