Moved exports assignment so it's prior to dependency loading.