Fix empty JS files not actually being empty

This commit is contained in:
Toby Zerner 2018-11-16 15:17:57 +10:30
parent 2764ad87cc
commit 62a40036d0

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();