Skip to content

Commit 1f54134

Browse files
authored
Revert tsup changes from build (#13667)
1 parent 4eb6fd8 commit 1f54134

File tree

17 files changed

+92
-94
lines changed

17 files changed

+92
-94
lines changed

.changeset/many-bees-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
[REMOVE] Revert tsup changes

.changeset/small-rocks-grab.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ Date: 2025-05-21
341341

342342
### Patch Changes
343343

344-
- `react-router` - Remove hashes from files in `dist/` for easier usage with `patch-package` ([#13567](https://github.com/remix-run/react-router/pull/13567))
345344
- `react-router` - Partially revert optimization added in `7.1.4` to reduce calls to `matchRoutes` because it surfaced other issues ([#13562](https://github.com/remix-run/react-router/pull/13562))
346345
- `react-router` - Update `Route.MetaArgs` to reflect that `data` can be potentially `undefined` ([#13563](https://github.com/remix-run/react-router/pull/13563))
347346
- This is primarily for cases where a route `loader` threw an error to it's own `ErrorBoundary`, but it also arises in the case of a 404 which renders the root `ErrorBoundary`/`meta` but the root `loader` did not run because not routes matched

integration/prefetch-test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ test.describe("prefetch", () => {
172172
await page.waitForSelector(
173173
// Look for either Rollup or Rolldown chunks
174174
[
175-
"link[rel='modulepreload'][href^='/assets/index-']",
175+
"link[rel='modulepreload'][href^='/assets/chunk-']",
176176
"link[rel='modulepreload'][href^='/assets/jsx-runtime-']",
177177
].join(","),
178178
{ state: "attached" }
@@ -232,7 +232,7 @@ test.describe("prefetch", () => {
232232
await page.waitForSelector(
233233
// Look for either Rollup or Rolldown chunks
234234
[
235-
"link[rel='modulepreload'][href^='/assets/index-']",
235+
"link[rel='modulepreload'][href^='/assets/chunk-']",
236236
"link[rel='modulepreload'][href^='/assets/jsx-runtime-']",
237237
].join(","),
238238
{ state: "attached" }
@@ -251,7 +251,7 @@ test.describe("prefetch", () => {
251251
await page.waitForSelector(
252252
// Look for either Rollup or Rolldown chunks
253253
[
254-
"link[rel='modulepreload'][href^='/assets/index-']",
254+
"link[rel='modulepreload'][href^='/assets/chunk-']",
255255
"link[rel='modulepreload'][href^='/assets/jsx-runtime-']",
256256
].join(","),
257257
{ state: "attached" }
@@ -341,7 +341,7 @@ test.describe("prefetch", () => {
341341
await page.waitForSelector(
342342
// Look for either Rollup or Rolldown chunks
343343
[
344-
"link[rel='modulepreload'][href^='/assets/index-']",
344+
"link[rel='modulepreload'][href^='/assets/chunk-']",
345345
"link[rel='modulepreload'][href^='/assets/jsx-runtime-']",
346346
].join(","),
347347
{ state: "attached" }
@@ -360,7 +360,7 @@ test.describe("prefetch", () => {
360360
await page.waitForSelector(
361361
// Look for either Rollup or Rolldown chunks
362362
[
363-
"link[rel='modulepreload'][href^='/assets/index-']",
363+
"link[rel='modulepreload'][href^='/assets/chunk-']",
364364
"link[rel='modulepreload'][href^='/assets/jsx-runtime-']",
365365
].join(","),
366366
{ state: "attached" }

packages/react-router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export type {
277277
MiddlewareEnabled as UNSAFE_MiddlewareEnabled,
278278
} from "./lib/types/future.ts";
279279
export type { unstable_SerializesTo } from "./lib/types/serializes-to.ts";
280-
export type { Register, Pages, RouteFiles } from "./lib/types/register";
280+
export type { Register } from "./lib/types/register";
281281
export { href } from "./lib/href";
282282

283283
///////////////////////////////////////////////////////////////////////////////

packages/react-router/internal-export.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/react-router/lib/dom/lib.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ import {
9494
useResolvedPath,
9595
useRouteId,
9696
} from "../hooks";
97-
import type { SerializeFrom } from "../types/internal-export/route-data";
97+
import type { SerializeFrom } from "../types/route-data";
9898

9999
////////////////////////////////////////////////////////////////////////////////
100100
//#region Global Stuff

packages/react-router/lib/dom/ssr/routeModules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type {
1313
import type { EntryRoute } from "./routes";
1414
import type { DataRouteMatch } from "../../context";
1515
import type { LinkDescriptor } from "../../router/links";
16-
import type { SerializeFrom } from "../../types/internal-export/route-data";
16+
import type { SerializeFrom } from "../../types/route-data";
1717

1818
export interface RouteModules {
1919
[routeId: string]: RouteModule | undefined;

packages/react-router/lib/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import {
4949
resolveTo,
5050
stripBasename,
5151
} from "./router/utils";
52-
import type { SerializeFrom } from "./types/internal-export/route-data";
52+
import type { SerializeFrom } from "./types/route-data";
5353

5454
/**
5555
Resolves a URL against the current location.

packages/react-router/lib/types/internal-export/params.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)