1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 02:01:19 +02:00

Fix empty JS files not actually being empty

This commit is contained in:
Toby Zerner
2018-11-16 15:17:57 +10:30
parent c9d36d6824
commit d4bf453a5b

View File

@@ -21,6 +21,10 @@ class JsCompiler extends RevisionCompiler
*/
protected function save(string $file, array $sources): bool
{
if (empty($sources)) {
return false;
}
$mapFile = $file.'.map';
$map = new SourceMap();