Rename API functions and throw errors

This should probably also be `getSourceMapGenerator`