Fixed exception: "Property 'jsmodule_pipeline_include_externals' does not exist in the object!" (#3661)

Co-authored-by: Artemkin_V <avr@vital-web.ru>
This commit is contained in:
Vital
2023-10-24 16:32:19 +07:00
committed by GitHub
parent d0ae677e61
commit 2179ef33a7

View File

@@ -398,6 +398,9 @@ class Assets extends PropertyObject
if ($key === 'position' && $value === 'pipeline') {
$type = $asset->getType();
if ($type === 'jsmodule') {
$type = 'js_module';
}
if ($asset->getRemote() && $this->{strtolower($type) . '_pipeline_include_externals'} === false && $asset['position'] === 'pipeline') {
if ($this->{strtolower($type) . '_pipeline_before_excludes'}) {