fix(typo): should pass exports to factory when amd

is this a typo? if it is amd, we should pass exports object to factory instead of root, isn't it?