From bb4173f55b9e655e81be7da12dfdcd4a7a991746 Mon Sep 17 00:00:00 2001 From: luxp Date: Fri, 3 Aug 2018 01:04:47 +0800 Subject: [PATCH] update the --jsx description --- README.md | 2 +- src/prog.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b2ec78..93f4466 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/src/prog.js b/src/prog.js index e854a33..b422d80 100644 --- a/src/prog.js +++ b/src/prog.js @@ -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 })