rollup-plugin-cleanup icon indicating copy to clipboard operation
rollup-plugin-cleanup copied to clipboard

Rollup plugin to remove comments, trim trailing spaces, compact empty lines, and normalize line endings

Results 13 rollup-plugin-cleanup issues
Sort by recently updated
recently updated
newest added

Building a chromium browser extension, and as in the title, if I use the option `lineEndings: "mac"`, the generated sourcemap no longer works - all line numbers in the console...

Hi, Your plugin modifies the extensions object passed to its options, which means it cannot be reused across plugins. This means the following sample config fails to properly resolve imports:...

For example: ```js jsCleanup(code, null, { comments: [ (commentContent) => { return commentContent.includes("preserve"); } ] }) ``` This allows more granular control over which comments to keep and which ones...

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=path-parse&package-manager=npm_and_yarn&previous-version=1.0.6&new-version=1.0.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

when i use comments: 'none', but comments still removed

I have no idea why, but Turf.js's jsDoc comments have multiple initial spaces after the initial /**: ``` /** * Earth Radius used with the Harvesine formula and approximates using...

For example, the following type of comments are not removed: ```js /*#__PURE__*/ ```

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) Changelog Sourced from glob-parent's changelog. 5.1.2 (2021-03-06) Bug Fixes eliminate ReDoS...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. Changelog Sourced from y18n's changelog. Change Log All notable changes to this project will be documented in this file. See standard-version for commit guidelines....

dependencies