Working on getting the `js` front matter type in Eleventy working in non-Node runtimes: https://github.com/zachleat/import-module-string
Also posted to Bluesky.
14 replies
Inspired by an old conversation with @patak.dev (iirc!) and this is what I was using @vitest.dev for!
I don't recall this, so probably someone else inspired you. But happy Vitest worked well for this 😊
I almost let you convince me but then I found it!
🫣
@zachleat why not Blob? A long unrelated discussion but see the end of this comment here: https://github.com/mdx-js/mdx/issues/2606#issuecomment-2778869459
@wooorm it does use Blob (but feature tests for support). It’s not supported in Node right now though https://github.com/nodejs/node/issues/47573
@zachleat ah interesting!
Some of the other stuff in the issue may be of interest then too, e.g. https://github.com/remcohaszing/recma-module-to-function#examples
@wooorm yeah! I’ll have a read — thanks!
@zachleat Okay...but hear me out... SQL frontmatter...
@konnorrogers *eyes narrow*
@zachleat and if you're feeling real dangerous, lets make everything GraphQL 🙃
@konnorrogers *runs away screaming*
@zachleat we've literally never tried it before. It'll be so good. Trust me bro.
@konnorrogers f. scott fitzgerald is rolling in their grave