mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Inject `__source` and `__self` in JSX elements earlier This fixes an issue where `this` was not correct inside arrow functions, similar to https://astexplorer.net/#/gist/86638d64cd21c496e7fecaea46313d95/906f8be24d7d99f3f5cd5a956a48355e1864f4b1 * Add test * Remove try-catch * Update error * Update fixtures * Update windows fixtures
11 lines
481 B
JSON
11 lines
481 B
JSON
{
|
|
"plugins": [
|
|
"transform-react-jsx-development",
|
|
"transform-react-jsx-source",
|
|
"transform-react-jsx-self"
|
|
],
|
|
"sourceType": "module",
|
|
"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."
|
|
}
|