Closed
Description
We currently publish some unnecessary files and comments as a part of the npm artifact. Mainly due to this fact, the size of the artifact is quite big (~3.1MB). This issue describes such contents we could get rid of in the artifact.
Source maps
Source maps are represented by .js.map
files. As those files take a lot of space (~1.7MB) and are only required during debugging compiled TS code, we should make sure to exclude them.
Typings for private APIs
Only typings for public APIs should be included into the artifact. Depends on #557
Remove copyright headers and other comments
We could remove copyright headers (at least from typings or js files) and jsdoc from the generated .js
and .d.ts
files.
These changes could be also backported to 3.12.z.