1+
2+
13# babel-preset-optimise [ ![ npm version] [ npmv-img ]] [ npmv-url ] [ ![ License] [ license-img ]] [ license-url ] [ ![ Libera Manifesto] [ libera-manifesto-img ]] [ libera-manifesto-url ]
24
35> Babel preset with optimizations in mind, modern output
@@ -62,21 +64,21 @@ from [GitHub Actions](https://github.com/features/actions) with
6264- [ Usage] ( #usage )
6365- [ What it includes?] ( #what-it-includes )
6466- [ API] ( #api )
65- - [ babelPresetOptimize] ( #babelpresetoptimize )
66- - [ Signature] ( #signature )
67- - [ Params] ( #params )
67+ * [ babelPresetOptimize] ( #babelpresetoptimize )
68+ + [ Signature] ( #signature )
69+ + [ Params] ( #params )
6870- [ Contributing] ( #contributing )
69- - [ Guides and Community] ( #guides-and-community )
70- - [ Support the project] ( #support-the-project )
71+ * [ Guides and Community] ( #guides-and-community )
72+ * [ Support the project] ( #support-the-project )
7173- [ Contributors] ( #contributors )
7274- [ License] ( #license )
7375
74- _ (TOC generated by [ verb] ( https://github.com/verbose/verb ) using
75- [ markdown-toc] ( https://github.com/jonschlinkert/markdown-toc ) )_
76+ _ (TOC generated by [ verb] ( https://github.com/verbose/verb ) using [ markdown-toc] ( https://github.com/jonschlinkert/markdown-toc ) )_
7677
7778## Install
7879
79- This project requires [ ** Node.js** ] ( https://nodejs.org ) ** >=10.13** _ (see
80+ This project requires [ ** Node.js** ] ( https://nodejs.org ) ** >=10.13**
81+ _ (see
8082[ Support & Release Policy] ( https://github.com/tunnckoCoreLabs/support-release-policy ) )_ .
8183Install it using [ ** yarn** ] ( https://yarnpkg.com ) or
8284[ ** npm** ] ( https://npmjs.com ) .<br > _ We highly recommend to use Yarn when you
@@ -118,10 +120,10 @@ _Generated using [jest-runner-docs](https://ghub.now.sh/jest-runner-docs)._
118120Be aware that when you use ` minifyBuiltins: true ` you _ MAY_ get a bigger output,
119121but that's not always guaranteed, just try for your case.
120122
121- If you want to use JSX (React) pass ` options.jsx: true ` . If you want to use JSX
122- (React) + TypeScript pass both ` { jsx: true, typescript: true } ` . If you wan to
123- use Preact + TypeScript, ` { jsx: { pragma: 'h' }, typescript: true } ` , if
124- ` options.jsx ` is an object, it is directly passed to ` preset-react ` .
123+ If you want to use JSX (React) pass ` options.jsx: true ` .
124+ If you want to use JSX (React) + TypeScript pass both ` { jsx: true, typescript: true } ` .
125+ If you wan to use Preact + TypeScript, ` { jsx: { pragma: 'h' }, typescript: true } ` ,
126+ if ` options.jsx ` is an object, it is directly passed to ` preset-react ` .
125127
126128<span id =" babelpresetoptimize-signature " ></span >
127129
@@ -136,17 +138,11 @@ function(api, options)
136138#### Params
137139
138140- ` options ` ** {object }** - optionally control what can be included
139- - ` options.jsx ` ** {boolean }** - default ` false ` , pass ` true ` if you want
140- ` react ` ; pass an object for more customization (passed to react preset )
141- - ` options.commonjs ` ** {boolean }** - default ` false ` , pass non - falsey value to
142- transform ESModules to CommonJS
143- - ` options.typescript ` ** {boolean }** - default ` false ` , includes the TypeScript
144- preset
145- - ` options.development ` ** {boolean }** - default ` false ` , disables few plugins ;
146- when it is ` true ` and ` options.jsx ` is enabled (true or object ) we add
147- ` options.jsx.development: true ` too
148- - ` options.minifyBuiltins ` ** {boolean }** - default ` false ` , includes
149- [babel - plugin - minify - builtins ][]
141+ - ` options.jsx ` ** {boolean }** - default ` false ` , pass ` true ` if you want ` react ` ; pass an object for more customization (passed to react preset )
142+ - ` options.commonjs ` ** {boolean }** - default ` false ` , pass non - falsey value to transform ESModules to CommonJS
143+ - ` options.typescript ` ** {boolean }** - default ` false ` , includes the TypeScript preset
144+ - ` options.development ` ** {boolean }** - default ` false ` , disables few plugins ; when it is ` true ` and ` options.jsx ` is enabled (true or object ) we add ` options.jsx.development: true ` too
145+ - ` options.minifyBuiltins ` ** {boolean }** - default ` false ` , includes [babel - plugin - minify - builtins ][]
150146
151147< ! -- docks - end -- >
152148
@@ -173,8 +169,7 @@ we proceed. In short, we support latest two even-numbered Node.js release lines.
173169[Become a Partner or Sponsor ? ][kofi - url ] : dollar : Check the ** OpenSource **
174170Commision (tier ). :tada : You can get your company logo , link & name on this
175171file . It ' s also rendered on package' s page in [npmjs .com ][npmv - url ] and
176- [yarnpkg .com ](https :// yarnpkg.com/en/package/babel-preset-optimise) sites too!
177- :rocket :
172+ [yarnpkg .com ](https :// yarnpkg.com/en/package/babel-preset-optimise) sites too! :rocket:
178173
179174Not financial support ? Okey !
180175[Pull requests ](https :// github.com/tunnckoCoreLabs/contributing#opening-a-pull-request),
@@ -210,10 +205,10 @@ your [support](#support-the-project) to them:
210205
211206## License
212207
213- Copyright (c ) 2020 - present , [ Charlike Mike Reagent ]( https : // tunnckocore.com)
214- ` <[email protected] > ` & [ contributors ](# wonderful - contributors ). < br > 215- Released under the [( Parity - 7.0 . 0 AND Prosperity - 3.0 . 0 ) OR Patron - 1.0 . 0
216- License ][license - url ].
208+ Copyright (c ) 2020 - present ,
209+ [ Charlike Mike Reagent ]( https : // tunnckocore.com) `<[email protected] >`210+ & [ contributors ](# wonderful - contributors ). < br > Released under the
211+ [ MPL - 2.0 License ][license - url ].
217212
218213< ! -- badges -- >
219214
@@ -304,4 +299,4 @@ License][license-url].
304299
305300< ! -- prettier - ignore - end -- >
306301
307- [babel - plugin - minify - builtins ]: https :// github.com/babel/minify
302+ [babel - plugin - minify - builtins ]: https :// github.com/babel/minify
0 commit comments