* allow use dev vitejs build without manifest reader

This commit is contained in:
2022-07-18 13:31:13 +03:00
parent 0c7f82ab7e
commit 2c2c419332
4 changed files with 30 additions and 19 deletions

View File

@ -13,11 +13,13 @@ abstract class Bundler
self::BUNDLER_VITE => ViteBundler::class,
];
protected ManifestReader $manifestReader;
protected ?ManifestReader $manifestReader;
public function __construct(ManifestReader $manifestReader)
public function __construct(?ManifestReader $manifestReader = null)
{
$this->manifestReader = $manifestReader;
if (isset($manifestReader)) {
$this->manifestReader = $manifestReader;
}
}
public function getBundlerType(): string