Skip to content

Commit ac8bd3f

Browse files
authored
build: drop comments to reduce package size (yargs#307)
1 parent ae3f180 commit ac8bd3f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"puppeteer": "^5.2.1",
6262
"rimraf": "^3.0.2",
6363
"rollup": "^2.22.1",
64+
"rollup-plugin-cleanup": "^3.1.1",
6465
"serve": "^11.3.2",
6566
"standardx": "^5.0.0",
6667
"start-server-and-test": "^1.11.2",

rollup.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import cleanup from 'rollup-plugin-cleanup'
12
import ts from '@wessberg/rollup-plugin-ts'
23
import transformDefaultExport from 'ts-transform-default-export'
34

@@ -17,6 +18,10 @@ export default {
1718
transformers: ({ program }) => ({
1819
afterDeclarations: transformDefaultExport(program)
1920
})
21+
}),
22+
cleanup({
23+
comments: 'none',
24+
extensions: ['*']
2025
})
2126
]
2227
}

0 commit comments

Comments
 (0)