Adds CommonJS export to the end of the file.