maddsua / ssg-assets

Convert media assets for your static website + UI Picture component for Vue, Svelte, React, Astro and more

Home Page:https://www.npmjs.com/package/@maddsua/ssg-assets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript config file support

maddsua opened this issue · comments

Allow config to be loaded from .js or .ts file

I thought about adding esbuild to help with that, but it's a serious package on it's own and I don't want to end up with ssga beung a huge bundle of the things that it doesn't actually need. Instead, I'm gonna use some regex magic (a huge footgun lol)

Great. Wasted another 1+ hour to realize that it's better to make ssa have another dependency than creating an undebuggable buggy importer

So the situation for config modules is as follows:

  • No value imports. You can only import types
  • Any exports. So if you want to have a list of all image formats in one place - put it here