Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for /*#__PURE__*/ comments. (#2429)
* Add support for /*#__PURE__*/ comments. * Review comments: Extract and stream-line code, add edge-case test * Perf optimization for pure annotation comment detection * Cosmetic name improvements, fix acorn walker import * Handle new expressions and add simple tests from UglifyJS * Test advanced scenarios and fix walker type bug * Make sure annotations are removed together with the annotated nodes even if this is not covered by normal comment removal. * Slightly simplify comment handling as I do not expect us to want to iterate more than once through all comments even if other annotation types are added * Add option to deactivate annotations and document it * Make sure annotations are never handled as a node * Rename pureAnnotations -> annotations * Update dependencies
- Loading branch information
1 parent
8a05bf2
commit 48b5429
Showing
41 changed files
with
1,097 additions
and
161 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
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.