Skip to content

Commit

Permalink
boyscouting
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Jan 11, 2024
1 parent 97fb4c0 commit a161265
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Bundlers/Bun.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function build(string $inputPath, string $outputPath, string $fileName):
'--target' => 'browser',
'--root' => $inputPath,
'--format' => 'esm',
// '--sourcemap=inline', // Maybe only locally?
// '--sourcemap=external', // Maybe only locally?
// '--splitting', // Breaks relative paths to imports from resources/js (TODO: Experiment more after writing tests)
'--minify' // Only in production?
];
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Bundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function render()
// and assign the import to that object.
// ---------------------------------------------
// Then we expose a _bundle function that
// can retreive the module as a Promis
// can retreive the module as a Promise
$js = <<< JS
if(!window._bundle_modules) window._bundle_modules = {}
window._bundle_modules.$this->as = import('$this->import')
Expand Down
File renamed without changes.
8 changes: 0 additions & 8 deletions src/Contracts/Directive.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function registerBundleManager()

protected function registerComponents()
{
$this->loadViewsFrom(__DIR__.'/../resources/components', 'bundle');
$this->loadViewsFrom(__DIR__.'/Components/views', 'bundle');
Blade::component('bundle', Bundle::class);
}

Expand Down

0 comments on commit a161265

Please sign in to comment.