Properly wrap modules with comment on last line.

Several plugins append sourceMappingURL directives to output files. Wrapping after would result in wrappers being unclosed.