From 73793ab2846822095683d472525e2ad7727a721f Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Wed, 10 Jan 2024 21:50:04 +0100 Subject: [PATCH] wip --- src/Bundlers/Bun.php | 2 +- src/Components/Bundle.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bundlers/Bun.php b/src/Bundlers/Bun.php index 0e8b52a..04da490 100644 --- a/src/Bundlers/Bun.php +++ b/src/Bundlers/Bun.php @@ -33,7 +33,7 @@ public function build(string $inputPath, string $outputPath, string $fileName): ]; - Process::run(dd("{$path}bun build {$this->args($options)}")) + Process::run("{$path}bun build {$this->args($options)}") ->throw(function ($res) use ($inputPath, $fileName): void { $failed = file_get_contents($inputPath.$fileName); throw new BundlingFailedException($res, $failed); diff --git a/src/Components/Bundle.php b/src/Components/Bundle.php index c1b9211..8f99b6f 100644 --- a/src/Components/Bundle.php +++ b/src/Components/Bundle.php @@ -34,6 +34,8 @@ public function render() BundleManager::new()->bundle($js) ); + dd($bundle); + // Render script tag with bundled code return view('bundle::bundle', [ 'bundle' => $bundle