Nicolò Ribaudo
5b97e77e03
v7.9.5
2020-04-07 21:15:23 +02:00
Luna Ruan
94447135c7
fix auto import error with whitespace JSXText ( #11354 )
2020-04-02 00:29:27 +02:00
Nicolò Ribaudo
8d5e422be2
v7.9.0
2020-03-20 16:32:55 +01:00
Huáng Jùnliàng
e39b508030
Add @babel/helper-validator-identifier ( #11289 )
...
* refactor: replace esutils.keywords.isIdentifierNameES6 by helper-validator-identifier
* refactor: replace esutils isReservedWordES6 by isKeyword || isReservedWord
* address review comments
* chore: specify both “main” and “exports”
* build helper-validator-identifier before babel-types
2020-03-20 12:23:14 +01:00
Nicolò Ribaudo
11292a3c74
Use the correct this in __self for JSX elements in arrows ( #11288 )
...
* Inject `__source` and `__self` in JSX elements earlier
This fixes an issue where `this` was not correct inside arrow functions, similar to
906f8be24d
* Add test
* Remove try-catch
* Update error
* Update fixtures
* Update windows fixtures
2020-03-19 20:01:17 +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