update the --jsx description

This commit is contained in:
luxp 2018-08-03 01:04:47 +08:00
parent 61797e58a5
commit bb4173f55b
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ Just like `microbundle build`, but watches your source files and rebuilds on any
--cwd Use an alternative working directory (default .)
--sourcemap Generate source map (default true)
-h, --help Displays this message
--jsx Support building React Component (--jsx React.createElement)
--jsx A custom JSX pragma like React.createElement (default: h)
```
### Specifying builds in `package.json`

View File

@ -25,7 +25,7 @@ export default handler => {
.option('--name', 'Specify name exposed in UMD builds')
.option('--cwd', 'Use an alternative working directory', '.')
.option('--sourcemap', 'Generate source map', true)
.option('--jsx', 'Support jsx like --jsx React.createElement');
.option('--jsx', 'A custom JSX pragma like React.createElement (default: h)');
prog
.command('build [...entries]', '', { default: true })