Describe the bug
When configuring a directory to be optimized, we cannot exclude a component using @blaze(compile: false).
Component causing the issue
{-- Service Provider --}
Blaze::optimize()->in(resource_path('views/components'));
{-- views/components/some/nested/component.blade.php --}
@blaze(compile: false)
My disabled Blaze component
Expected behavior
The component should not be compiled by Blaze.
Actual behavior
The component is compiled to Blaze.
Environment
- Laravel version: 13.13.0
- PHP version: 8.5.5
- Blaze version: 1.0.12
Additional context
The work-around is to specify the exclude in the Service Provider.
{-- Service Provider --}
Blaze::optimize()->in(resource_path('views/components'))->add(resource_path('views/components/some/nested'), false);
Describe the bug
When configuring a directory to be optimized, we cannot exclude a component using
@blaze(compile: false).Component causing the issue
{-- Service Provider --} Blaze::optimize()->in(resource_path('views/components'));{-- views/components/some/nested/component.blade.php --} @blaze(compile: false) My disabled Blaze componentExpected behavior
The component should not be compiled by Blaze.
Actual behavior
The component is compiled to Blaze.
Environment
Additional context
The work-around is to specify the exclude in the Service Provider.
{-- Service Provider --} Blaze::optimize()->in(resource_path('views/components'))->add(resource_path('views/components/some/nested'), false);