How to add modules to auto-imports?
In my app I have many components and pages with this import:
Is there a way to add it to auto-imports and potentially rename it, aka.
utils
to ethersUtils
or smth like that?3 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Yes I thought the same and then somehow export it in a file under
/utils
, which will auto import it. Just couldn't figure out how to export a module.
Second option would be imports
in nuxt.config.ts
, but it doesn't have much docs yet...You could create a simple plugin that makes it available to all components: