Fix alias assignment in commonjs and es6 modules.