mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02:00
Fix empty JS files not actually being empty
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user