Skip to content

Commit

Permalink
fix: compiling split chunks in production
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Apr 26, 2024
1 parent 9149ecc commit 270188b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framework/core/src/Frontend/Compiler/JsDirectoryCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
/**
* Used to copy JS files from a package directory to the assets' directory.
* Without concatenating them. Primarily used for lazy loading JS modules.
*
* @method DirectorySource[] getSources()
*/
class JsDirectoryCompiler implements CompilerInterface
{
Expand Down Expand Up @@ -53,6 +51,10 @@ public function commit(bool $force = false): void

public function getUrl(): ?string
{
foreach ($this->getSources() as $source) {
$this->eachFile($source, fn (JsCompiler $compiler) => $compiler->getUrl());
}

return null;
}

Expand Down

0 comments on commit 270188b

Please sign in to comment.