@apleasantview/eleventy-plugin-baseline 0.1.0-next.16 → 0.1.0-next.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,9 +49,6 @@ export default function assetsESBuild(eleventyConfig, options = {}) {
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
// Filter to inline a bundled entry.
|
|
53
|
-
eleventyConfig.addFilter("inlineESbuild", inlineESbuild);
|
|
54
|
-
|
|
55
52
|
// Filter to inline a bundled entry (async, works with callback or promise).
|
|
56
53
|
eleventyConfig.addAsyncFilter("inlineESbuild", async function (jsFilePath, callback) {
|
|
57
54
|
const done = typeof callback === "function" ? callback : null;
|
|
@@ -68,11 +65,7 @@ export default function assetsESBuild(eleventyConfig, options = {}) {
|
|
|
68
65
|
// Override the default collection behavior. Adding js as template format and extension collects 11tydata.js files.
|
|
69
66
|
eleventyConfig.addCollection("all", function (collectionApi) {
|
|
70
67
|
return collectionApi.getAll().filter(item => {
|
|
71
|
-
|
|
72
|
-
if (item.inputPath.endsWith('11tydata.js')) {
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
return true;
|
|
68
|
+
return !item.inputPath.endsWith("11tydata.js");
|
|
76
69
|
});
|
|
77
70
|
});
|
|
78
71
|
};
|
package/package.json
CHANGED