@@ -46,39 +46,40 @@ export default handler => {
46
46
. option ( '--target' , 'Specify your target environment (node or web)' , 'web' )
47
47
. option ( '--external' , `Specify external dependencies, or 'none'` )
48
48
. option ( '--globals' , `Specify globals dependencies, or 'none'` )
49
- . example ( 'microbundle --globals react=React,jquery=$' )
49
+ . example ( '--globals react=React,jquery=$' )
50
50
. option ( '--define' , 'Replace constants with hard-coded values' )
51
- . example ( 'microbundle --define API_KEY=1234' )
51
+ . example ( '--define API_KEY=1234' )
52
52
. option ( '--alias' , `Map imports to different modules` )
53
- . example ( 'microbundle --alias react=preact' )
53
+ . example ( '--alias react=preact' )
54
54
. option ( '--compress' , 'Compress output using Terser' , null )
55
55
. option ( '--strict' , 'Enforce undefined global context and add "use strict"' )
56
56
. option ( '--name' , 'Specify name exposed in UMD builds' )
57
57
. option ( '--cwd' , 'Use an alternative working directory' , '.' )
58
58
. option ( '--sourcemap' , 'Generate source map' )
59
- . option ( '--css' , 'Where to output CSS: "inline" or "external"' , 'external' )
60
- . option (
61
- '--workers' ,
62
- 'Bundle module workers - see https://git.io/J3oSF' ,
63
- false ,
64
- )
65
- . option (
66
- '--css-modules' ,
67
- 'Turns on css-modules for all .css imports. Passing a string will override the scopeName. eg --css-modules="_[hash]"' ,
68
- null ,
69
- )
70
- . example ( "microbundle --no-sourcemap # don't generate sourcemaps" )
59
+ . example ( "watch --no-sourcemap # don't generate sourcemaps" )
71
60
. option ( '--raw' , 'Show raw byte size' , false )
61
+ . option ( '--jsx' , 'A custom JSX pragma like React.createElement' , 'h' )
72
62
. option (
73
- '--jsx ' ,
74
- 'A custom JSX pragma like React.createElement (default: h) ' ,
63
+ '--jsxImportSource ' ,
64
+ 'Declares the module specifier to be used for importing jsx factory functions ' ,
75
65
)
76
66
. option ( '--tsconfig' , 'Specify the path to a custom tsconfig.json' )
67
+ . example ( 'build --tsconfig tsconfig.build.json' )
77
68
. option (
78
69
'--generateTypes' ,
79
70
'Whether or not to generate types , if `types` or `typings` is set in `package.json` then it will default to be `true`' ,
80
71
)
81
- . example ( 'microbundle build --tsconfig tsconfig.build.json' ) ;
72
+ . option ( '--css' , 'Where to output CSS: "inline" or "external"' , 'external' )
73
+ . option (
74
+ '--css-modules' ,
75
+ 'Turns on css-modules for all .css imports. Passing a string will override the scopeName. eg --css-modules="_[hash]"' ,
76
+ null ,
77
+ )
78
+ . option (
79
+ '--workers' ,
80
+ 'Bundle module workers - see https://git.io/J3oSF' ,
81
+ false ,
82
+ ) ;
82
83
83
84
prog
84
85
. command ( 'build [...entries]' , '' , { default : true } )
0 commit comments