Nicolò Ribaudo
4f83a09dd8
Load jsx-runtime after existing imports ( #12546 )
...
Co-authored-by: Brian Ng <bng412@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-01-10 16:23:22 +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
Nicolò Ribaudo
28d2cbcbf3
Lazily inject imports to the JSX runtime ( #12493 )
2020-12-15 12:55:17 +01:00
Mateusz Burzyński
1ef9e196d3
Allow multiple __self/__source props with classic JSX runtime ( #12475 )
2020-12-10 18:17:20 +01:00
Mateusz Burzyński
c2fcd69e94
Stop using old JSX transform ( #12253 )
2020-12-08 22:41:13 +01:00
Nicolò Ribaudo
02fc9e835c
Revert "add .js extension to react runtime for JSX transform" ( #12213 )
2020-10-19 19:50:43 +02:00
Luna Ruan
9808d2566e
add js extension to react runtime ( #12116 )
2020-09-30 08:31:45 +02:00
Joe Haddad
371e152cd2
fix(jsx): do not throw on generated element in development mode ( #12017 )
...
* Fix `jsxDEV` for generated elements
* Throw invariant error
* Add test
* test: revise test layout
* fix: node 6 does not support trailing comma
* Use undefined node
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-08-31 15:16:47 -04:00
Huáng Jùnliàng
469e8ed591
Transform cwd in string literal on win32 ( #11297 )
...
* chore: replace win32 cwd in string literal by <CWD>
* chore: update test fixtures
2020-03-20 23:59:02 +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