Javascript assets in a theme component

Assets names seem to only be accessible as variables, and the real names are long and complicated numbers, so that won’t work either.
It kind of seems like there is no way to do this as a component right now, so I’m going to sideload the JS files through nginx and access them that way for now. Probably means this component will only work for me unfortunately.