Skip to content

Commit 4cd4275

Browse files
authored
Document iife format (#601)
1 parent aa8a312 commit 4cd4275

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Options
158158
-v, --version Displays current version
159159
-i, --entry Entry module(s)
160160
-o, --output Directory to place build files into
161-
-f, --format Only build specified formats (default modern,es,cjs,umd)
161+
-f, --format Only build specified formats (any of modern,es,cjs,umd or iife) (default modern,es,cjs,umd)
162162
-w, --watch Rebuilds on any change (default false)
163163
--target Specify your target environment (node or web) (default web)
164164
--external Specify external dependencies, or 'none'

src/prog.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export default handler => {
2222
.version(version)
2323
.option('--entry, -i', 'Entry module(s)')
2424
.option('--output, -o', 'Directory to place build files into')
25-
.option('--format, -f', 'Only build specified formats', DEFAULT_FORMATS)
25+
.option(
26+
'--format, -f',
27+
`Only build specified formats (any of ${DEFAULT_FORMATS} or iife)`,
28+
DEFAULT_FORMATS,
29+
)
2630
.option('--watch, -w', 'Rebuilds on any change', false)
2731
.option('--target', 'Specify your target environment (node or web)', 'web')
2832
.option('--external', `Specify external dependencies, or 'none'`)

0 commit comments

Comments
 (0)