public function createJavaScriptLoader(string $locale = null): JavaScriptLoader
	{
		$compilers[] = $this->createJSCompiler($this->files[self::JS][null]);
		if ($locale !== null && isset($this->files[self::JS][$locale])) {
			$compilers[] = $this->createJSCompiler($this->files[self::JS][$locale]);
		}

		return new JavaScriptLoader($this->httpRequest->getUrl()->basePath . $this->outputDir, ...$compilers);
	}