Skip to content

Commit 65c4cfb

Browse files
committed
Rename base-option.js to .mjs
1 parent 8dc684a commit 65c4cfb

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Overwrite the default attributes from config file:
8282

8383
```php
8484
$action = StoreChartImage::make()
85-
->baseOptionPath(resource_path('echarts/base-option.js')) // base chart to be merged
85+
->baseOptionPath(resource_path('echarts/base-option.mjs')) // base chart to be merged
8686
->mimeType(MimeTypes::PNG) // PNG, JPG, PDF, SVG
8787
->optimize(true) // optimize with pngcrush
8888
->filePath('app/public') // storage path
File renamed without changes.

src/Actions/StoreChartImage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function height(int $value): static
8282

8383
public function __construct()
8484
{
85-
$this->baseOptionPath(codebarista_path('resources/echarts/base-option.js'));
85+
$this->baseOptionPath(codebarista_path('resources/echarts/base-option.mjs'));
8686
$this->filePath(config('echarts.storage.path', 'app/public/vendor/echarts'));
8787
$this->mimeType(config('echarts.canvas.mime_type', MimeTypes::PNG));
8888
$this->optimize(config('echarts.optimize.png', false));

0 commit comments

Comments
 (0)