From 2179ef33a7f1185a900e76d610aae43daf4d1be7 Mon Sep 17 00:00:00 2001 From: Vital Date: Tue, 24 Oct 2023 16:32:19 +0700 Subject: [PATCH] Fixed exception: "Property 'jsmodule_pipeline_include_externals' does not exist in the object!" (#3661) Co-authored-by: Artemkin_V --- system/src/Grav/Common/Assets.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/src/Grav/Common/Assets.php b/system/src/Grav/Common/Assets.php index 9c270d986..1bd6e9668 100644 --- a/system/src/Grav/Common/Assets.php +++ b/system/src/Grav/Common/Assets.php @@ -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'}) {