Skip to content

Commit

Permalink
Minimum WebC requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Mar 29, 2023
1 parent 8ec0997 commit 83dd7a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eleventy-image.webc
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ async function imagePlugin(attributes, globalPluginOptions) {
globalPluginOptions = __private_eleventyImageConfigurationOptions();
}

if(!("filterPublicAttributes" in webc)) {
throw new Error("The <eleventy-image> WebC component requires WebC v0.10.1+");
}

let attributes = webc.filterPublicAttributes(webc.attributes);
return imagePlugin(attributes, globalPluginOptions)
})();
Expand Down

0 comments on commit 83dd7a1

Please sign in to comment.