Open Wewill opened 1 year ago
@Wewill thanks for reporting this. i was no aware that this was an issue, but I'm working on esm-related stuff in #41 that should fix this aswell.
i don't quite remember how I set up cosmiconfig (and i'll replace it soon), but here are 2 ideas you could try in the meantime (I have no idea if any of this will work):
gettext.config.cjs
gettext.config.json
and write the config as json instead of jsThanks a lot @lzurbriggen for your quick reply.
Renaming the file to gettext.config.cjs
is quickly fixing the issue !
Thanks again !
Can we use gettext.config.ts
after #41 ~
so that we can use code hint
export default defineGettextConfig({
...
})
@youthlin i will try to implement a ts-node based loader to enable this. i don't have a lot of time at the moment, so all of that will probably take a while.
Package version is : 2.4.0
Thanks a lot