fix(sourcemap): move method to onSpecComplete