mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 12:39:27 +00:00
6213b2a62a
Summary: In this pr, I updated the deprecated babel-plugins with their new library. When you enter the npm page of the relevant plugins, it is recommended to implement new packages instead of the deprecated package. For example : <img width="1305" alt="Screenshot 2024-05-05 at 17 50 16" src="https://github.com/facebook/react-native/assets/113903710/a58fdac3-79db-4b53-98bd-4c5325a1e560"> ## Motivation: We use the react-native package in our project and aim to upgrade pnpm to the latest version. First, we wanted to clear deprecated warnings. Babel plugin deprecated warnings were caused by the react-native package, so I created this pull request. Deprecation Warnings from package installing : <img width="581" alt="Screenshot 2024-05-05 at 17 53 05" src="https://github.com/facebook/react-native/assets/113903710/9c5859a5-f194-43ab-ae35-417dfaacebab"> ## Changelog: [GENERAL][FIXED] - Replace deprecated babel-plugin libraries to fix deprecation warnings on installation Pull Request resolved: https://github.com/facebook/react-native/pull/44416 Test Plan: CI should pass Reviewed By: huntie Differential Revision: D57056843 Pulled By: robhogan fbshipit-source-id: b75b329bbc2105c31da85e861ef71ffdcbbb0623
13 lines
414 B
Plaintext
13 lines
414 B
Plaintext
{
|
|
"plugins": [
|
|
"@babel/plugin-transform-object-rest-spread",
|
|
"@babel/plugin-transform-async-to-generator",
|
|
"@babel/plugin-transform-destructuring",
|
|
"@babel/plugin-transform-flow-strip-types",
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
"@babel/plugin-transform-class-properties",
|
|
"@babel/plugin-transform-nullish-coalescing-operator",
|
|
"@babel/plugin-transform-optional-chaining"
|
|
]
|
|
}
|