mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39819 Bump `hermes-parser` packages to the latest released version. Changelog: https://github.com/facebook/hermes/blob/main/tools/hermes-parser/js/CHANGELOG.md Notable changes: - Upgraded to the lastest version of emscripten for the parser. - The babel interop logic now more closely matches babel's AST. - The biggest change is we now add the `extra.raw` properties to literal nodes, which results in Babel more closely outputting literal sources. e.g. previously the following would happen `1.0` -> `1`, `'foo'` -> `"foo"` and `1n` -> `1` but now the raw source value is preserved. - Upgraded `prettier-plugin-hermes-parser` to use the latest prettier formatting logic, which causes some minor formatting changes. - `hermes-parser` no longer fails when the `component` name is used within a function type, e.g. `type Foo = (component: string) => void`. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D49935231 fbshipit-source-id: a905838396fdd7281442c211970e0caa773a1256
30 lines
664 B
JSON
30 lines
664 B
JSON
{
|
|
"name": "@react-native/metro-babel-transformer",
|
|
"version": "0.73.11",
|
|
"description": "Babel transformer for React Native applications.",
|
|
"main": "src/index.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:facebook/react-native.git",
|
|
"directory": "packages/react-native-babel-transformer"
|
|
},
|
|
"keywords": [
|
|
"transformer",
|
|
"react-native",
|
|
"metro"
|
|
],
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@babel/core": "^7.20.0",
|
|
"@react-native/babel-preset": "*",
|
|
"hermes-parser": "0.16.0",
|
|
"nullthrows": "^1.1.1"
|
|
},
|
|
"peerDependencies": {
|
|
"@babel/core": "*"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
}
|
|
}
|