refactor(gc-index): extract common namespace calculation code
feat(module exports): provide the global to cjs transform with the class name to export