* allow use dev vitejs build without manifest reader
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user