diff --git a/eleventy-image.webc b/eleventy-image.webc index a1d74c1..22a9b34 100644 --- a/eleventy-image.webc +++ b/eleventy-image.webc @@ -103,6 +103,10 @@ async function imagePlugin(attributes, globalPluginOptions) { globalPluginOptions = __private_eleventyImageConfigurationOptions(); } + if(!("filterPublicAttributes" in webc)) { + throw new Error("The WebC component requires WebC v0.10.1+"); + } + let attributes = webc.filterPublicAttributes(webc.attributes); return imagePlugin(attributes, globalPluginOptions) })();