* 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
10 lines
483 B
JSON
10 lines
483 B
JSON
{
|
|
"plugins": [
|
|
["transform-react-jsx-development", { "runtime": "classic" }],
|
|
"transform-react-jsx-source",
|
|
"transform-react-jsx-self"
|
|
],
|
|
"os": ["linux", "darwin"],
|
|
"throws": "Duplicate __self prop found. You are most likely using the deprecated transform-react-jsx-self Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config."
|
|
}
|