Skip to content

Commit f3dcd70

Browse files
committed
remove debug messages when bundling
1 parent 31a66f6 commit f3dcd70

File tree

4 files changed

+83
-1
lines changed

4 files changed

+83
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
**Promise-based priority queues for throttling, rate- and concurrency limiting of Node.js or browser tasks**
44

55
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6+
[![npm version](https://img.shields.io/npm/v/async-await-queue)](https://www.npmjs.com/package/async-await-queue)
67
[![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)
78
[![codecov](https://codecov.io/gh/mmomtchev/Queue/branch/master/graph/badge.svg)](https://codecov.io/gh/mmomtchev/Queue)
89

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

1112
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)
1213

package-lock.json

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"mocha": "^10.2.0",
5151
"npm": "^9.3.1",
5252
"rollup": "^3.10.1",
53+
"rollup-plugin-modify": "^3.0.0",
5354
"ts-node": "^10.9.1",
5455
"typescript": "^4.9.4"
5556
}

rollup.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import typescript from '@rollup/plugin-typescript';
2+
import modify from 'rollup-plugin-modify';
23
import terser from '@rollup/plugin-terser';
34

45
export default [
@@ -22,6 +23,10 @@ export default [
2223
sourcemap: true
2324
},
2425
plugins: [
26+
modify({
27+
find: /debug\(.*\);?/,
28+
replace: ''
29+
}),
2530
typescript(),
2631
terser()
2732
]

0 commit comments

Comments
 (0)