Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(metro-service): add RAM bundle deprecation warning #3350

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/cold-eggs-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@rnx-kit/metro-service": patch
---

RAM bundle is deprecated and was removed in 0.75. This command may stop working
altogether in the future.

For more details, see https://github.com/facebook/react-native/pull/43292.
5 changes: 5 additions & 0 deletions packages/metro-service/src/ramBundle.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { warn } from "@rnx-kit/console";
import type { ConfigT } from "metro-config";
import * as path from "path";
import type { BundleArgs } from "./bundle";
import { bundle } from "./bundle";
import { requireMetroPath } from "./metro";

export function ramBundle(args: BundleArgs, config: ConfigT): Promise<void> {
warn(
"RAM bundle is deprecated and was removed in 0.75; for more details, see https://github.com/facebook/react-native/pull/43292"
);

const ramBundlePath = path.join(
requireMetroPath(config.projectRoot),
"src",
Expand Down