Tilde Import for `.mjs`
Hey! I recently renamed a file from
.ts
to .mjs
and I noticed that it's now unable to be imported via ~config/env.mjs
(located in /src/config/env.mjs
). It used to work when it was a .ts file. I think it's due to this: https://docs.plasmo.com/framework/import#tilde- Any reason .js
and .mjs
aren't a part of this?3 Replies
https://env.t3.gg/docs
This is the library I'm using for it
Might go back to
.ts
to get unblocked but the use case here is that I can also import it into .js
files such as tailwind.config.js or whatever
And I think .mjs
also gets typed checked which is pretty cool@nahtnam has reached level 12. GG!
Yeah mjs is not being included atm because it'd be a separate pipeline I think...
Is there a
mjsx
yet? lol