Refactored API to allow lazy sourcemaps init