Skip to content

Commit 58b45e8

Browse files
blakeffacebook-github-bot
authored andcommitted
Remove RFC-0759 ram-bundle command from cli (#43292)
Summary: Pull Request resolved: #43292 The ram-bundle command isn't necessary now that Hermes is our default VM. The RFC specifically calls for the CLI command to be removed [1]. [1] https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0759-react-native-frameworks.md#commands-to-be-removed Changelog: [General][Removed] - RFC-0759 remove ram-bundle command. Reviewed By: NickGerleman, cipolleschi Differential Revision: D54430289 fbshipit-source-id: 49d519c007b739f89ffe9032fec905c56ea49f4a
1 parent 6461dcd commit 58b45e8

File tree

4 files changed

+0
-59
lines changed

4 files changed

+0
-59
lines changed

packages/community-cli-plugin/README.md

-18
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,6 @@ npx react-native bundle --entry-file <path> [options]
6969
| `--read-global-cache` | Attempt to fetch transformed JS code from the global cache, if configured. Defaults to `false`. |
7070
| `--config <string>` | Path to the CLI configuration file. |
7171

72-
### `ram-bundle`
73-
74-
Build the [RAM bundle](https://reactnative.dev/docs/ram-bundles-inline-requires) for the provided JavaScript entry file.
75-
76-
#### Usage
77-
78-
```sh
79-
npx react-native ram-bundle --entry-file <path> [options]
80-
```
81-
82-
#### Options
83-
84-
Accepts all options supported by [`bundle`](#bundle) and the following:
85-
86-
| Option | Description |
87-
| - | - |
88-
| `--indexed-ram-bundle` | Force the "Indexed RAM" bundle file format, even when building for Android. |
89-
9072
## Contributing
9173

9274
Changes to this package can be made locally and tested against the `rn-tester` app, per the [Contributing guide](https://reactnative.dev/contributing/overview#contributing-code). During development, this package is automatically run from source with no build step.

packages/community-cli-plugin/src/commands/ram-bundle/index.js

-38
This file was deleted.

packages/community-cli-plugin/src/index.flow.js

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111

1212
export {default as bundleCommand} from './commands/bundle';
13-
export {default as ramBundleCommand} from './commands/ram-bundle';
1413
export {default as startCommand} from './commands/start';
1514

1615
export {unstable_buildBundleWithConfig} from './commands/bundle/buildBundle';

packages/react-native/react-native.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const android = require('@react-native-community/cli-platform-android');
1313
const ios = require('@react-native-community/cli-platform-ios');
1414
const {
1515
bundleCommand,
16-
ramBundleCommand,
1716
startCommand,
1817
} = require('@react-native/community-cli-plugin');
1918

@@ -49,7 +48,6 @@ module.exports = {
4948
...ios.commands,
5049
...android.commands,
5150
bundleCommand,
52-
ramBundleCommand,
5351
startCommand,
5452
codegenCommand,
5553
],

0 commit comments

Comments
 (0)