this is great for node, but we will need to do a parallel for the browser version. Likely but checking if `typeof process`, and then inspecting `require.entries`