mirror of
https://github.com/flarum/framework.git
synced 2025-02-19 07:13:24 +08:00
Fix empty JS files not actually being empty
This commit is contained in:
parent
2764ad87cc
commit
62a40036d0
|
@ -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