Skip to content

Commit 0a12908

Browse files
committed
Fixes #305 removes webc component
1 parent e22fd9f commit 0a12908

File tree

12 files changed

+3
-265
lines changed

12 files changed

+3
-265
lines changed

eleventy-image.webc

Lines changed: 0 additions & 131 deletions
This file was deleted.

img.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,5 @@ Object.assign(queueImage, {
144144
});
145145

146146
// Eleventy Plugins (named exports only)
147-
export {
148-
eleventyWebcOptionsPlugin as eleventyImagePlugin,
149-
eleventyWebcOptionsPlugin as eleventyImageWebcOptionsPlugin,
150-
} from "./src/webc-options-plugin.js";
151-
152147
export { eleventyImageTransformPlugin } from "./src/transform-plugin.js";
153148
export { eleventyImageOnRequestDuringServePlugin } from "./src/on-request-during-serve-plugin.js";

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
},
5151
"devDependencies": {
5252
"@11ty/eleventy": "^3.1.2",
53-
"@11ty/eleventy-plugin-webc": "^0.11.2",
5453
"@eslint/js": "^9.30.1",
5554
"@stylistic/eslint-plugin-js": "^4.4.1",
5655
"ava": "^6.4.0",

src/on-request-during-serve-plugin.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ export function eleventyImageOnRequestDuringServePlugin(eleventyConfig, options
2929
let via = url.searchParams.get("via");
3030

3131
let defaultOptions;
32-
if(via === "webc") {
33-
defaultOptions = eleventyConfig.getFilter("__private_eleventyImageConfigurationOptions")();
34-
} else if(via === "transform") {
32+
if(via === "transform") {
3533
defaultOptions = eleventyConfig.getFilter("__private_eleventyImageTransformConfigurationOptions")();
3634
}
37-
// if using this plugin directly (not via webc or transform), global default options will need to be passed in to the `addPlugin` call directly
35+
// if using this plugin directly (not via transform), global default options will need to be passed in to the `addPlugin` call directly
3836

39-
// Prefer options passed to this plugin, fallback to Transform plugin or WebC options if the image source was generated via those options.
37+
// Prefer options passed to this plugin, fallback to Transform plugin options if the image source was generated via those options.
4038
let opts = Object.assign({}, defaultOptions, options, {
4139
widths: [width || "auto"],
4240
formats: [imageFormat || "auto"],

src/transform-plugin.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ export function eleventyImageTransformPlugin(eleventyConfig, options = {}) {
151151
eleventyConfig.addPlugin(eleventyImageOnRequestDuringServePlugin);
152152
}
153153

154-
// Notably, global options are not shared automatically with the WebC `eleventyImagePlugin` above.
155-
// Devs can pass in the same object to both if they want!
156154
let opts = getGlobalOptions(eleventyConfig, options, "transform");
157155

158156
eleventyConfig.addJavaScriptFunction("__private_eleventyImageTransformConfigurationOptions", () => {

src/webc-options-plugin.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

test/test-webc.mjs

Lines changed: 0 additions & 75 deletions
This file was deleted.

test/webc/eleventy.config.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

test/webc/formats.webc

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/webc/simple.webc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)