diff --git a/framework/core/src/Frontend/Compiler/JsCompiler.php b/framework/core/src/Frontend/Compiler/JsCompiler.php index b86a42044..79f1a3df1 100644 --- a/framework/core/src/Frontend/Compiler/JsCompiler.php +++ b/framework/core/src/Frontend/Compiler/JsCompiler.php @@ -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();