-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Сalculate sourceMappingURL size (#133)
- Add API `excludeSourceMapComment` option and `exclude-source-map` CLI parameter to exclude sourceMappingURL comment from size analysis - Rename `<unmapped>` to `[unmapped]`. Using `<>` in HTML output cause wrong title `<` - Export `UNMAPPED_KEY` `SOURCE_MAP_COMMENT_KEY` from index.ts so that these virtual files can be found among `files` object properties - Improve size analysis accuracy. Calculate sourceMappingURL comment and EOL bytes. Use `Buffer.byteLength` to get string length in bytes. UTF-8 encoding is assumed. We can add encoding detection later if needed, but it isn't an easy thing to do. - Add some tests
- Loading branch information
1 parent
98b13b2
commit 87ea1e8
Showing
20 changed files
with
406 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.