#How to add auto import for a `util` in a nuxt module ?

1 messages · Page 1 of 1 (latest)

rigid iron
#

You could make a composable that exports the util

agile arch
#

I thought of that but the file must be in the utils directory because other components imports from that path

rigid iron
#

Yeah I meant the composable references the utility in the util folder

#

I've done that myself where I have reused functionality library but make a composable wrapper of sorts