Add custom shortcodefunctions

i’m new with the 5.7 version and i have a custom json with a lot of functions that help me to be faster creating an app, so, the issue is that i export the variable and impor it in app,js (i already try to import and pass to the routes, but not working) so, my question is:

How can i include a custom json with functions to be used in all proyect pages?