build: support for local asset function and new resolving algorithm for basis.asset