@react-router/dev 0.0.0-experimental-4d6793aa7 → 0.0.0-experimental-8fdb14ec6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -13,16 +13,16 @@ import {
13
13
  extractPluginContext,
14
14
  getServerBuildDirectory,
15
15
  resolveViteConfig
16
- } from "./chunk-B25E3JGK.js";
17
- import "./chunk-B3M3SF27.js";
18
- import "./chunk-HICCFFJA.js";
16
+ } from "./chunk-TLJPROZH.js";
17
+ import "./chunk-76RVI3VW.js";
18
+ import "./chunk-ACXLX4EI.js";
19
19
  import {
20
20
  getVite,
21
21
  preloadVite
22
- } from "./chunk-X234P535.js";
22
+ } from "./chunk-6ZGYCLOA.js";
23
23
  import {
24
24
  invariant
25
- } from "./chunk-XJYIKBPH.js";
25
+ } from "./chunk-6CEKSKVN.js";
26
26
 
27
27
  // vite/build.ts
28
28
  import path from "node:path";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import {
12
12
  invariant
13
- } from "./chunk-XJYIKBPH.js";
13
+ } from "./chunk-6CEKSKVN.js";
14
14
 
15
15
  // vite/vite.ts
16
16
  import { createRequire as createRequire2 } from "node:module";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import {
12
12
  invariant
13
- } from "./chunk-XJYIKBPH.js";
13
+ } from "./chunk-6CEKSKVN.js";
14
14
 
15
15
  // config/routes.ts
16
16
  import * as Path from "pathe";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import {
12
12
  invariant
13
- } from "./chunk-XJYIKBPH.js";
13
+ } from "./chunk-6CEKSKVN.js";
14
14
 
15
15
  // vite/node-adapter.ts
16
16
  import { once } from "node:events";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -12,19 +12,19 @@ import {
12
12
  configRoutesToRouteManifest,
13
13
  setAppDirectory,
14
14
  validateRouteConfig
15
- } from "./chunk-B3M3SF27.js";
15
+ } from "./chunk-76RVI3VW.js";
16
16
  import {
17
17
  fromNodeRequest,
18
18
  toNodeRequest
19
- } from "./chunk-HICCFFJA.js";
19
+ } from "./chunk-ACXLX4EI.js";
20
20
  import {
21
21
  getVite,
22
22
  isReactRouterRepo,
23
23
  preloadVite
24
- } from "./chunk-X234P535.js";
24
+ } from "./chunk-6ZGYCLOA.js";
25
25
  import {
26
26
  invariant
27
- } from "./chunk-XJYIKBPH.js";
27
+ } from "./chunk-6CEKSKVN.js";
28
28
 
29
29
  // config/config.ts
30
30
  import fs from "node:fs";
@@ -1566,8 +1566,10 @@ var reactRouterVitePlugin = () => {
1566
1566
  let viteClientConditions = [
1567
1567
  ...vite.defaultClientConditions ?? []
1568
1568
  ];
1569
+ let moduleSyncEnabled = require4("#module-sync-enabled").default;
1569
1570
  let viteServerConditions = [
1570
- ...vite.defaultServerConditions ?? []
1571
+ ...vite.defaultServerConditions ?? [],
1572
+ ...moduleSyncEnabled ? ["module-sync"] : []
1571
1573
  ];
1572
1574
  logger = vite.createLogger(viteUserConfig.logLevel, {
1573
1575
  prefix: "[react-router]"
package/dist/cli/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @react-router/dev v0.0.0-experimental-4d6793aa7
3
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -13,20 +13,20 @@ import {
13
13
  loadPluginContext,
14
14
  run,
15
15
  watch
16
- } from "../chunk-B25E3JGK.js";
17
- import "../chunk-B3M3SF27.js";
18
- import "../chunk-HICCFFJA.js";
16
+ } from "../chunk-TLJPROZH.js";
17
+ import "../chunk-76RVI3VW.js";
18
+ import "../chunk-ACXLX4EI.js";
19
19
  import {
20
20
  start,
21
21
  stop
22
- } from "../chunk-VTJ3CG32.js";
22
+ } from "../chunk-NPNB22L5.js";
23
23
  import {
24
24
  getVite,
25
25
  preloadVite
26
- } from "../chunk-X234P535.js";
26
+ } from "../chunk-6ZGYCLOA.js";
27
27
  import {
28
28
  __require
29
- } from "../chunk-XJYIKBPH.js";
29
+ } from "../chunk-6CEKSKVN.js";
30
30
 
31
31
  // cli/run.ts
32
32
  import url from "node:url";
@@ -134,7 +134,7 @@ async function build(root, options = {}) {
134
134
  if (!root) {
135
135
  root = process.env.REACT_ROUTER_ROOT || process.cwd();
136
136
  }
137
- let { build: build2 } = await import("../build-VA3X4T4U.js");
137
+ let { build: build2 } = await import("../build-7YIQVVYE.js");
138
138
  if (options.profile) {
139
139
  await start();
140
140
  }
@@ -145,7 +145,7 @@ async function build(root, options = {}) {
145
145
  }
146
146
  }
147
147
  async function dev(root, options = {}) {
148
- let { dev: dev2 } = await import("../dev-SLPL2UHO.js");
148
+ let { dev: dev2 } = await import("../dev-BTYKYMMV.js");
149
149
  if (options.profile) {
150
150
  await start();
151
151
  }
package/dist/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -12,12 +12,12 @@ import {
12
12
  getSession,
13
13
  start,
14
14
  stop
15
- } from "./chunk-VTJ3CG32.js";
15
+ } from "./chunk-NPNB22L5.js";
16
16
  import {
17
17
  getVite,
18
18
  preloadVite
19
- } from "./chunk-X234P535.js";
20
- import "./chunk-XJYIKBPH.js";
19
+ } from "./chunk-6ZGYCLOA.js";
20
+ import "./chunk-6CEKSKVN.js";
21
21
 
22
22
  // vite/dev.ts
23
23
  import colors from "picocolors";
package/dist/routes.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -15,8 +15,8 @@ import {
15
15
  prefix,
16
16
  relative,
17
17
  route
18
- } from "./chunk-B3M3SF27.js";
19
- import "./chunk-XJYIKBPH.js";
18
+ } from "./chunk-76RVI3VW.js";
19
+ import "./chunk-6CEKSKVN.js";
20
20
  export {
21
21
  getAppDirectory,
22
22
  index,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -11,12 +11,12 @@
11
11
  import {
12
12
  fromNodeRequest,
13
13
  toNodeRequest
14
- } from "../chunk-HICCFFJA.js";
14
+ } from "../chunk-ACXLX4EI.js";
15
15
  import {
16
16
  getVite,
17
17
  preloadVite
18
- } from "../chunk-X234P535.js";
19
- import "../chunk-XJYIKBPH.js";
18
+ } from "../chunk-6ZGYCLOA.js";
19
+ import "../chunk-6CEKSKVN.js";
20
20
 
21
21
  // vite/cloudflare-dev-proxy.ts
22
22
  import { createRequestHandler } from "react-router";
package/dist/vite.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-4d6793aa7
2
+ * @react-router/dev v0.0.0-experimental-8fdb14ec6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10,11 +10,11 @@
10
10
  */
11
11
  import {
12
12
  reactRouterVitePlugin
13
- } from "./chunk-B25E3JGK.js";
14
- import "./chunk-B3M3SF27.js";
15
- import "./chunk-HICCFFJA.js";
16
- import "./chunk-X234P535.js";
17
- import "./chunk-XJYIKBPH.js";
13
+ } from "./chunk-TLJPROZH.js";
14
+ import "./chunk-76RVI3VW.js";
15
+ import "./chunk-ACXLX4EI.js";
16
+ import "./chunk-6ZGYCLOA.js";
17
+ import "./chunk-6CEKSKVN.js";
18
18
  export {
19
19
  reactRouterVitePlugin as reactRouter
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-router/dev",
3
- "version": "0.0.0-experimental-4d6793aa7",
3
+ "version": "0.0.0-experimental-8fdb14ec6",
4
4
  "description": "Dev tools and CLI for React Router",
5
5
  "type": "module",
6
6
  "homepage": "https://reactrouter.com",
@@ -32,6 +32,12 @@
32
32
  },
33
33
  "./package.json": "./package.json"
34
34
  },
35
+ "imports": {
36
+ "#module-sync-enabled": {
37
+ "module-sync": "./config/module-sync-enabled/true.js",
38
+ "default": "./config/module-sync-enabled/false.cjs"
39
+ }
40
+ },
35
41
  "bin": {
36
42
  "react-router": "bin.js"
37
43
  },
@@ -82,7 +88,7 @@
82
88
  "set-cookie-parser": "^2.6.0",
83
89
  "valibot": "^0.41.0",
84
90
  "vite-node": "3.0.0-beta.2",
85
- "@react-router/node": "0.0.0-experimental-4d6793aa7"
91
+ "@react-router/node": "0.0.0-experimental-8fdb14ec6"
86
92
  },
87
93
  "devDependencies": {
88
94
  "@types/babel__core": "^7.20.5",
@@ -111,15 +117,15 @@
111
117
  "vite": "^6.0.0",
112
118
  "wireit": "0.14.9",
113
119
  "wrangler": "^3.28.2",
114
- "@react-router/serve": "0.0.0-experimental-4d6793aa7",
115
- "react-router": "^0.0.0-experimental-4d6793aa7"
120
+ "@react-router/serve": "0.0.0-experimental-8fdb14ec6",
121
+ "react-router": "^0.0.0-experimental-8fdb14ec6"
116
122
  },
117
123
  "peerDependencies": {
118
124
  "typescript": "^5.1.0",
119
125
  "vite": "^5.1.0 || ^6.0.0",
120
126
  "wrangler": "^3.28.2",
121
- "@react-router/serve": "^0.0.0-experimental-4d6793aa7",
122
- "react-router": "^0.0.0-experimental-4d6793aa7"
127
+ "@react-router/serve": "^0.0.0-experimental-8fdb14ec6",
128
+ "react-router": "^0.0.0-experimental-8fdb14ec6"
123
129
  },
124
130
  "peerDependenciesMeta": {
125
131
  "@react-router/serve": {