unbuild
unbuild copied to clipboard
alias support from tsconfig
Would this feature allow importing from #app (i.e. defineNuxtPlugin, useState, etc) inside a Nuxt module built with unbuild ?
Or is this already possible with unbuild ?
You should never import from #app in a nuxt module
How about importing from #app inside a plugin template in a Nuxt module ?
Sure that is possible but for runtime files like plugins, we use mkdist that transpiles them file-by-file and without resolving aliases. (see this example)
I will add a better starter template soon. Sorry for lack of it at the moment!
Thinking more, using tsConfig with side effects is not the best idea to infer aliases. Using build.config seems best.