chore: remove out of date TODO comments
trickyni trickyniv56@gmail.com
Mon, 25 May 2026 14:35:54 +0300
1 files changed,
4 insertions(+),
9 deletions(-)
jump to
M
insertJSX.js
→
insertJSX.js
@@ -1,10 +1,5 @@
-import { select } from "hast-util-select"; import { resolve } from "path"; /* - * DONE filedata - * DONE before/after - * DONE multiple components - * DONE global data * HACK deduplicate * HACK make the data validation more elegant */@@ -15,14 +10,14 @@
return async (tree) => { if (data.before != undefined) { for (let x of [data.before].flat().reverse()) { - const fn = await import(`${templateDir}/${x}.jsx`); //FIX avoid strict filestruct past "input" - tree.children.unshift(fn.default(data, siteIndex)); //TODO use select on "body" + const fn = await import(`${templateDir}/${x}.jsx`); + tree.children.unshift(fn.default(data, siteIndex)); } } if (data.after != undefined) { for (let x of [data.after].flat().reverse()) { - const fn = await import(`${templateDir}/${x}.jsx`); //FIX avoid strict filestruct past "input" - tree.children.push(fn.default(data, siteIndex)); //TODO use select on "body" + const fn = await import(`${templateDir}/${x}.jsx`); + tree.children.push(fn.default(data, siteIndex)); } } };