Skip to content

Commit

Permalink
fix(metro-service): add RAM bundle deprecation warning (#3350)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Sep 13, 2024
1 parent b6a18d9 commit 2fc25d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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

0 comments on commit 2fc25d4

Please sign in to comment.