Huáng Jùnliàng
1e3ef05685
[babel 8] Type checking preset-react options ( #12741 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-03-26 20:11:39 +01:00
Nicolò Ribaudo
10978bb65a
[babel 8] Use the JSX automatic runtime by default ( #12630 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Arun Kumar Mohan <arunmohandm@gmail.com>
2021-01-19 01:41:07 +01:00
Nicolò Ribaudo
fce3e7124a
[babel 8] Remove useSpread and useBuiltIns jsx options ( #12593 )
...
* [babel 8] Remove `useSpread` and `useBuiltIns` jsx options
backport of 8cc8696851fa4bf02d7f6ae591404626d1ca32a3
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
* Update fixtures (Windows)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-01-08 18:16:30 +01:00
Mateusz Burzyński
c2fcd69e94
Stop using old JSX transform ( #12253 )
2020-12-08 22:41:13 +01:00
Huáng Jùnliàng
2e3eec6646
refactor: use option-validator in preset-typescript ( #12347 )
2020-11-20 15:11:20 +01:00
Devon Govett
6ba1f0dd22
Implement @babel/plugin-transform-react-pure-annotations ( #11428 )
...
The new plugin is also enabled in `@babel/preset-react`
2020-05-24 22:55:29 +02:00
Brian Ng
6a728a05a8
Restore default pragmas in preset-react for classic runtime ( #11324 )
2020-03-24 00:06:44 +01:00
Nicolò Ribaudo
f3912ac08f
Mark transpiled JSX elements as pure ( #11126 )
...
* Mark transpiled JSX elements as pure
* Avoid duble annotation
* Add "pure" option to the React preset
* Fix generator indentation
* Update tests
* Add tests for the "pure" option
* Update windows fixtures
2020-03-19 15:43:54 +01:00
Luna Ruan
748897be07
Add experimental version of the `babel-plugin-transform-react-… ( #11154 )
...
* add next option for babel-plugin-transform-react-jsx
* address review comments
* chore: update test fixtures
* Update fixture
* Add "columnNumber" to the new React transform
* Update windows fixtures
* Delete unused output.js
* Update windows tests
* Fix windows again
* fix comments
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Moti Zilberman <motiz88@gmail.com>
2020-03-17 09:16:53 +01:00
Ivan Medina
3d2f365074
[transform-react-jsx] Add useSpread option to transform JSX ( #10572 )
...
* [transform-react-jsx] Add useSpread option to transform JSX
* Add validation for default option
* Add error when using useSpread and useBuiltIns at the same time
* Move useSpread to convertAttribute helper function
* Add useSpread option to presect-react
* Remove casting useSpread to boolean in preset-react option.
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2019-10-29 23:02:53 +01:00
Logan Smyth
43aa61d6be
Make the typescript preset require a filename unless the user configured it for general use.
2018-05-21 18:34:50 -07:00
Logan Smyth
a4795408b4
Allow plugins to assert that a specific babel version has loaded the plugin. ( #7450 )
2018-03-04 14:36:54 -08:00
Logan Smyth
b19b66d94b
Use peerDep rather than plugin param for common APIs.
2017-11-06 11:32:47 -08:00
Henry Zhu
1196ec1e38
add loose/useBuiltIns option to stage presets, use it, opt babylon build ( #6733 )
...
* add loose, useBuiltIns options to presets + use loose class properties
* whitelist helpers for babylon
* use transform-for-of-as-array in babylon
2017-11-03 14:22:06 -04:00
Henry Zhu
cde0054227
Scoped: change src imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Ramiro Silveyra d'Avila
9e4e64dac9
Remove Flow support in React preset ( #6118 )
2017-08-21 10:48:18 -04:00
Brian Ng
57da9bdbed
Add requireDirective to strip-flow-types for use in React preset
2017-08-03 21:13:45 -05:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Logan Smyth
bf13ed4da0
Limit where certain arguments are allowed in Babel config.
2017-03-17 00:03:58 -07:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Daniel Tschinder
87ca6150ae
[7.0] Remove bc code from preset handling and preset-es2015 ( #5128 )
...
* Remove bc code from preset handling and preset-es2015
* Add more tests
* Only allow functions for presets
* Fix lint
2017-02-22 14:58:01 +01:00
james kyle
75ac320cf7
Add new flow preset ( #5288 )
2017-02-09 16:45:38 -08:00
Justin Johansson
bae59470da
Upgraded all babel-preset-xxxs but babel-preset-es2015 to export syntax
2016-09-25 12:27:32 -07:00
Justin Johansson
e16a1657ab
Align all babel-preset-xxx packages dir structures with status quo
2016-09-25 11:41:43 -07:00