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
nahtnam
nahtnamOP•13mo ago
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
Arcane
Arcane•13mo ago
@nahtnam has reached level 12. GG!
lab
lab•13mo ago
Yeah mjs is not being included atm because it'd be a separate pipeline I think... Is there a mjsx yet? lol
Want results from more Discord servers?
Add your server