Added AMD module loading to prepareExports