Skip to content

Commit

Permalink
remove debug messages when bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Jan 25, 2023
1 parent 31a66f6 commit f3dcd70
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
**Promise-based priority queues for throttling, rate- and concurrency limiting of Node.js or browser tasks**

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![npm version](https://img.shields.io/npm/v/async-await-queue)](https://www.npmjs.com/package/async-await-queue)
[![Node.js CI](https://github.com/mmomtchev/Queue/workflows/Node.js%20CI/badge.svg)](https://github.com/mmomtchev/Queue/actions?query=workflow%3A%22Node.js+CI%22)
[![codecov](https://codecov.io/gh/mmomtchev/Queue/branch/master/graph/badge.svg)](https://codecov.io/gh/mmomtchev/Queue)

Zero-dependency, total size: **`3.41 kB` uncompressed and `1.33 kB` gzip-compressed**
Zero-dependency, total size: **`3.09 kB` uncompressed and `1.22 kB` gzip-compressed**

There is a medium story about using this package to parallelize download loops : [Parallelizing download loops in JS with async-await-queue](https://medium.com/@mmomtchev/parallelizing-download-loops-in-js-with-async-await-queue-670420880cd6)

Expand Down
75 changes: 75 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"mocha": "^10.2.0",
"npm": "^9.3.1",
"rollup": "^3.10.1",
"rollup-plugin-modify": "^3.0.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
}
Expand Down
5 changes: 5 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import typescript from '@rollup/plugin-typescript';
import modify from 'rollup-plugin-modify';
import terser from '@rollup/plugin-terser';

export default [
Expand All @@ -22,6 +23,10 @@ export default [
sourcemap: true
},
plugins: [
modify({
find: /debug\(.*\);?/,
replace: ''
}),
typescript(),
terser()
]
Expand Down

0 comments on commit f3dcd70

Please sign in to comment.