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 @@ protected function filterAssets($assets, $key, $value, $sort = false) 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'}) {