mirror of
https://github.com/flarum/framework.git
synced 2025-02-02 15:10:45 +08:00
Fix empty JS files not actually being empty
This commit is contained in:
parent
c9d36d6824
commit
d4bf453a5b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user