@react-router/dev 0.0.0-experimental-e16afd9b7 → 0.0.0-experimental-9aebdc522
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.
- package/dist/cli/commands.js +1 -1
- package/dist/cli/detectPackageManager.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/run.js +1 -1
- package/dist/cli/useJavascript.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/colors.js +1 -1
- package/dist/config/defaults/entry.client.rsc.tsx +29 -0
- package/dist/config/defaults/entry.react-server.node.tsx +4 -0
- package/dist/config/defaults/entry.react-server.web.tsx +4 -0
- package/dist/config/findConfig.js +1 -1
- package/dist/config/flatRoutes.js +1 -1
- package/dist/config/format.js +1 -1
- package/dist/config/routes.js +1 -1
- package/dist/config.d.ts +1 -23
- package/dist/config.js +6 -6
- package/dist/index.js +1 -1
- package/dist/invariant.js +1 -1
- package/dist/runtime.client.js +1 -1
- package/dist/vite/babel.js +1 -1
- package/dist/vite/build.js +10 -33
- package/dist/vite/cloudflare-proxy-plugin.js +1 -1
- package/dist/vite/dev.js +1 -1
- package/dist/vite/import-vite-esm-sync.js +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/vite/node-adapter.js +1 -1
- package/dist/vite/plugin.d.ts +1 -0
- package/dist/vite/plugin.js +14 -12
- package/dist/vite/profiler.js +1 -1
- package/dist/vite/remove-exports.js +1 -1
- package/dist/vite/resolve-file-url.js +1 -1
- package/dist/vite/styles.js +1 -1
- package/dist/vite/vmod.js +1 -1
- package/package.json +7 -7
- package/dist/config/defaults/entry.dev.d.ts +0 -2
- package/dist/config/defaults/entry.dev.ts +0 -13
package/dist/cli/commands.js
CHANGED
package/dist/cli/index.js
CHANGED
package/dist/cli/run.js
CHANGED
package/dist/cli.js
CHANGED
package/dist/colors.js
CHANGED
|
@@ -71,6 +71,28 @@ if (import.meta.env.PROD) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
window.__diy_client_manifest__.callServer = async (id, args) => {
|
|
75
|
+
const href = window.location.href;
|
|
76
|
+
const headers = new Headers({
|
|
77
|
+
Accept: "text/x-component",
|
|
78
|
+
"rsc-action": id,
|
|
79
|
+
});
|
|
80
|
+
const responsePromise = fetch(href, {
|
|
81
|
+
method: "POST",
|
|
82
|
+
headers,
|
|
83
|
+
body: await ReactServerDOM.encodeReply(args),
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
const result = await ReactServerDOM.createFromFetch(
|
|
87
|
+
responsePromise,
|
|
88
|
+
window.__diy_client_manifest__
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
window.__remixRouter.revalidate();
|
|
92
|
+
|
|
93
|
+
return result;
|
|
94
|
+
};
|
|
95
|
+
|
|
74
96
|
window.createFromReadableStream = function createFromReadableStream(
|
|
75
97
|
body: ReadableStream<Uint8Array>
|
|
76
98
|
) {
|
|
@@ -88,3 +110,10 @@ startTransition(() => {
|
|
|
88
110
|
</StrictMode>
|
|
89
111
|
);
|
|
90
112
|
});
|
|
113
|
+
|
|
114
|
+
if (import.meta.hot) {
|
|
115
|
+
console.log("ACCEPTING HMR");
|
|
116
|
+
import.meta.hot.on("react-router:hmr", () => {
|
|
117
|
+
window.__remixRouter.revalidate();
|
|
118
|
+
});
|
|
119
|
+
}
|
|
@@ -13,3 +13,7 @@ export function renderToReadableStream(data: unknown) {
|
|
|
13
13
|
pipe(passthrough);
|
|
14
14
|
return createReadableStreamFromReadable(passthrough);
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
export const decodeAction = ReactServerDOM.decodeAction;
|
|
18
|
+
export const decodeFormState = ReactServerDOM.decodeFormState;
|
|
19
|
+
export const decodeReply = ReactServerDOM.decodeReply;
|
|
@@ -7,3 +7,7 @@ export function renderToReadableStream(data: unknown) {
|
|
|
7
7
|
global.__diy_server_manifest__
|
|
8
8
|
);
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
export const decodeAction = ReactServerDOM.decodeAction;
|
|
12
|
+
export const decodeFormState = ReactServerDOM.decodeFormState;
|
|
13
|
+
export const decodeReply = ReactServerDOM.decodeReply;
|
package/dist/config/format.js
CHANGED
package/dist/config/routes.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -88,11 +88,6 @@ export type VitePluginConfig = {
|
|
|
88
88
|
* A function that is called after the full React Router build is complete.
|
|
89
89
|
*/
|
|
90
90
|
buildEnd?: BuildEndHook;
|
|
91
|
-
/**
|
|
92
|
-
* Whether to write a `"manifest.json"` file to the build directory.`
|
|
93
|
-
* Defaults to `false`.
|
|
94
|
-
*/
|
|
95
|
-
manifest?: boolean;
|
|
96
91
|
/**
|
|
97
92
|
* An array of URLs to prerender to HTML files at build time. Can also be a
|
|
98
93
|
* function returning an array to dynamically generate URLs.
|
|
@@ -144,19 +139,10 @@ export type ResolvedVitePluginConfig = Readonly<{
|
|
|
144
139
|
* Enabled future flags
|
|
145
140
|
*/
|
|
146
141
|
future: FutureConfig;
|
|
147
|
-
/**
|
|
148
|
-
* Whether to write a `"manifest.json"` file to the build directory.`
|
|
149
|
-
* Defaults to `false`.
|
|
150
|
-
*/
|
|
151
|
-
manifest: boolean;
|
|
152
142
|
/**
|
|
153
143
|
* An array of URLs to prerender to HTML files at build time.
|
|
154
144
|
*/
|
|
155
145
|
prerender: Array<string> | null;
|
|
156
|
-
/**
|
|
157
|
-
* Derived from Vite's `base` config
|
|
158
|
-
* */
|
|
159
|
-
publicPath: string;
|
|
160
146
|
/**
|
|
161
147
|
* An object of all available routes, keyed by route id.
|
|
162
148
|
*/
|
|
@@ -185,6 +171,7 @@ export type ResolvedVitePluginConfig = Readonly<{
|
|
|
185
171
|
*/
|
|
186
172
|
ssr: boolean;
|
|
187
173
|
}>;
|
|
174
|
+
export declare function resolvePublicPath(viteUserConfig: Vite.UserConfig): string;
|
|
188
175
|
export declare function resolveReactRouterConfig({ rootDirectory, reactRouterUserConfig, viteUserConfig, viteCommand, }: {
|
|
189
176
|
rootDirectory: string;
|
|
190
177
|
reactRouterUserConfig: VitePluginConfig;
|
|
@@ -211,19 +198,10 @@ export declare function resolveReactRouterConfig({ rootDirectory, reactRouterUse
|
|
|
211
198
|
* Enabled future flags
|
|
212
199
|
*/
|
|
213
200
|
future: FutureConfig;
|
|
214
|
-
/**
|
|
215
|
-
* Whether to write a `"manifest.json"` file to the build directory.`
|
|
216
|
-
* Defaults to `false`.
|
|
217
|
-
*/
|
|
218
|
-
manifest: boolean;
|
|
219
201
|
/**
|
|
220
202
|
* An array of URLs to prerender to HTML files at build time.
|
|
221
203
|
*/
|
|
222
204
|
prerender: string[] | null;
|
|
223
|
-
/**
|
|
224
|
-
* Derived from Vite's `base` config
|
|
225
|
-
* */
|
|
226
|
-
publicPath: string;
|
|
227
205
|
/**
|
|
228
206
|
* An object of all available routes, keyed by route id.
|
|
229
207
|
*/
|
package/dist/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-9aebdc522
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -86,6 +86,9 @@ let deepFreeze = o => {
|
|
|
86
86
|
});
|
|
87
87
|
return o;
|
|
88
88
|
};
|
|
89
|
+
function resolvePublicPath(viteUserConfig) {
|
|
90
|
+
return viteUserConfig.base ?? "/";
|
|
91
|
+
}
|
|
89
92
|
async function resolveReactRouterConfig({
|
|
90
93
|
rootDirectory,
|
|
91
94
|
reactRouterUserConfig,
|
|
@@ -110,7 +113,6 @@ async function resolveReactRouterConfig({
|
|
|
110
113
|
let defaults = {
|
|
111
114
|
basename: "/",
|
|
112
115
|
buildDirectory: "build",
|
|
113
|
-
manifest: false,
|
|
114
116
|
serverBuildFile: "index.js",
|
|
115
117
|
serverModuleFormat: "esm",
|
|
116
118
|
ssr: true
|
|
@@ -122,7 +124,6 @@ async function resolveReactRouterConfig({
|
|
|
122
124
|
buildEnd,
|
|
123
125
|
future: userFuture,
|
|
124
126
|
ignoredRouteFiles,
|
|
125
|
-
manifest,
|
|
126
127
|
routes: userRoutesFunction,
|
|
127
128
|
prerender: prerenderConfig,
|
|
128
129
|
serverBuildFile,
|
|
@@ -151,7 +152,7 @@ async function resolveReactRouterConfig({
|
|
|
151
152
|
}
|
|
152
153
|
let appDirectory = path__default["default"].resolve(rootDirectory, userAppDirectory || "app");
|
|
153
154
|
let buildDirectory = path__default["default"].resolve(rootDirectory, userBuildDirectory);
|
|
154
|
-
let publicPath = viteUserConfig
|
|
155
|
+
let publicPath = resolvePublicPath(viteUserConfig);
|
|
155
156
|
if (basename !== "/" && viteCommand === "serve" && !((_viteUserConfig$serve = viteUserConfig.server) !== null && _viteUserConfig$serve !== void 0 && _viteUserConfig$serve.middlewareMode) && !basename.startsWith(publicPath)) {
|
|
156
157
|
throw new Error("When using the React Router `basename` and the Vite `base` config, " + "the `basename` config must begin with `base` for the default " + "Vite dev server.");
|
|
157
158
|
}
|
|
@@ -196,9 +197,7 @@ async function resolveReactRouterConfig({
|
|
|
196
197
|
buildDirectory,
|
|
197
198
|
buildEnd,
|
|
198
199
|
future,
|
|
199
|
-
manifest,
|
|
200
200
|
prerender,
|
|
201
|
-
publicPath,
|
|
202
201
|
routes: routes$1,
|
|
203
202
|
serverBuildFile,
|
|
204
203
|
serverBundles,
|
|
@@ -302,4 +301,5 @@ let disjunctionListFormat = new Intl.ListFormat("en", {
|
|
|
302
301
|
|
|
303
302
|
exports.configRouteToBranchRoute = configRouteToBranchRoute;
|
|
304
303
|
exports.resolveEntryFiles = resolveEntryFiles;
|
|
304
|
+
exports.resolvePublicPath = resolvePublicPath;
|
|
305
305
|
exports.resolveReactRouterConfig = resolveReactRouterConfig;
|
package/dist/index.js
CHANGED
package/dist/invariant.js
CHANGED
package/dist/runtime.client.js
CHANGED
package/dist/vite/babel.js
CHANGED
package/dist/vite/build.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-9aebdc522
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -149,26 +149,13 @@ async function cleanBuildDirectory(viteConfig, ctx) {
|
|
|
149
149
|
}
|
|
150
150
|
function getViteManifestPaths(ctx, serverBuilds) {
|
|
151
151
|
let buildRelative = pathname => path__default["default"].resolve(ctx.reactRouterConfig.buildDirectory, pathname);
|
|
152
|
-
let viteManifestPaths = [{
|
|
153
|
-
srcPath: "client/.vite/manifest.json",
|
|
154
|
-
destPath: ".vite/client-manifest.json"
|
|
155
|
-
}, ...serverBuilds.map(({
|
|
152
|
+
let viteManifestPaths = ["client/.vite/manifest.json", ...serverBuilds.map(({
|
|
156
153
|
serverBundleBuildConfig
|
|
157
154
|
}) => {
|
|
158
155
|
let serverBundleId = serverBundleBuildConfig === null || serverBundleBuildConfig === void 0 ? void 0 : serverBundleBuildConfig.serverBundleId;
|
|
159
156
|
let serverBundlePath = serverBundleId ? serverBundleId + "/" : "";
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
srcPath: `server/${serverBundlePath}.vite/manifest.json`,
|
|
163
|
-
destPath: `.vite/server-${serverBundleSuffix}manifest.json`
|
|
164
|
-
};
|
|
165
|
-
})].map(({
|
|
166
|
-
srcPath,
|
|
167
|
-
destPath
|
|
168
|
-
}) => ({
|
|
169
|
-
srcPath: buildRelative(srcPath),
|
|
170
|
-
destPath: buildRelative(destPath)
|
|
171
|
-
}));
|
|
157
|
+
return `server/${serverBundlePath}.vite/manifest.json`;
|
|
158
|
+
})].map(srcPath => buildRelative(srcPath));
|
|
172
159
|
return viteManifestPaths;
|
|
173
160
|
}
|
|
174
161
|
async function build(root, {
|
|
@@ -247,30 +234,20 @@ async function build(root, {
|
|
|
247
234
|
} = await getServerBuilds(ctx);
|
|
248
235
|
await Promise.all(serverBuilds.map(viteBuild));
|
|
249
236
|
let viteManifestPaths = getViteManifestPaths(ctx, serverBuilds);
|
|
250
|
-
await Promise.all(viteManifestPaths.map(async
|
|
251
|
-
|
|
252
|
-
destPath
|
|
253
|
-
}) => {
|
|
254
|
-
let manifestExists = await fse__default["default"].pathExists(srcPath);
|
|
237
|
+
await Promise.all(viteManifestPaths.map(async viteManifestPath => {
|
|
238
|
+
let manifestExists = await fse__default["default"].pathExists(viteManifestPath);
|
|
255
239
|
if (!manifestExists) return;
|
|
256
|
-
//
|
|
257
|
-
if (ctx.viteManifestEnabled) {
|
|
258
|
-
await fse__default["default"].
|
|
259
|
-
await fse__default["default"].move(srcPath, destPath);
|
|
260
|
-
} else {
|
|
261
|
-
await fse__default["default"].remove(srcPath);
|
|
240
|
+
// Delete original Vite manifest file if consumer doesn't want it
|
|
241
|
+
if (!ctx.viteManifestEnabled) {
|
|
242
|
+
await fse__default["default"].remove(viteManifestPath);
|
|
262
243
|
}
|
|
263
244
|
// Remove .vite dir if it's now empty
|
|
264
|
-
let viteDir = path__default["default"].dirname(
|
|
245
|
+
let viteDir = path__default["default"].dirname(viteManifestPath);
|
|
265
246
|
let viteDirFiles = await fse__default["default"].readdir(viteDir);
|
|
266
247
|
if (viteDirFiles.length === 0) {
|
|
267
248
|
await fse__default["default"].remove(viteDir);
|
|
268
249
|
}
|
|
269
250
|
}));
|
|
270
|
-
if (ctx.reactRouterConfig.manifest) {
|
|
271
|
-
await fse__default["default"].ensureDir(path__default["default"].join(ctx.reactRouterConfig.buildDirectory, ".react-router"));
|
|
272
|
-
await fse__default["default"].writeFile(path__default["default"].join(ctx.reactRouterConfig.buildDirectory, ".react-router", "manifest.json"), JSON.stringify(buildManifest, null, 2), "utf-8");
|
|
273
|
-
}
|
|
274
251
|
await ((_reactRouterConfig$bu = reactRouterConfig.buildEnd) === null || _reactRouterConfig$bu === void 0 ? void 0 : _reactRouterConfig$bu.call(reactRouterConfig, {
|
|
275
252
|
buildManifest,
|
|
276
253
|
reactRouterConfig,
|
package/dist/vite/dev.js
CHANGED
package/dist/vite/index.js
CHANGED
package/dist/vite/plugin.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export type ReactRouterPluginContext = ReactRouterPluginSsrBuildContext & {
|
|
|
61
61
|
entryClientFilePath: string;
|
|
62
62
|
entryReactServerFilePath?: string;
|
|
63
63
|
entryServerFilePath: string;
|
|
64
|
+
publicPath: string;
|
|
64
65
|
reactRouterConfig: ResolvedVitePluginConfig;
|
|
65
66
|
viteManifestEnabled: boolean;
|
|
66
67
|
};
|
package/dist/vite/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-9aebdc522
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -157,12 +157,12 @@ const getReactRouterManifestBuildAssets = (ctx, viteManifest, entryFilePath, pre
|
|
|
157
157
|
let prependedAssetChunks = prependedAssetFilePaths.map(filePath => resolveChunk(ctx, viteManifest, filePath));
|
|
158
158
|
let chunks = resolveDependantChunks(viteManifest, [...prependedAssetChunks, entryChunk]);
|
|
159
159
|
return {
|
|
160
|
-
module: `${ctx.
|
|
160
|
+
module: `${ctx.publicPath}${entryChunk.file}`,
|
|
161
161
|
imports: dedupe(chunks.flatMap(e => e.imports ?? [])).map(imported => {
|
|
162
|
-
return `${ctx.
|
|
162
|
+
return `${ctx.publicPath}${viteManifest[imported].file}`;
|
|
163
163
|
}) ?? [],
|
|
164
164
|
css: dedupe(chunks.flatMap(e => e.css ?? [])).map(href => {
|
|
165
|
-
return `${ctx.
|
|
165
|
+
return `${ctx.publicPath}${href}`;
|
|
166
166
|
}) ?? []
|
|
167
167
|
};
|
|
168
168
|
};
|
|
@@ -291,6 +291,7 @@ const reactRouterVitePlugin = _config => {
|
|
|
291
291
|
rootDirectory,
|
|
292
292
|
reactRouterConfig
|
|
293
293
|
});
|
|
294
|
+
let publicPath = config.resolvePublicPath(viteUserConfig);
|
|
294
295
|
let viteManifestEnabled = ((_viteUserConfig$build = viteUserConfig.build) === null || _viteUserConfig$build === void 0 ? void 0 : _viteUserConfig$build.manifest) === true;
|
|
295
296
|
let ssrBuildCtx = viteConfigEnv.isSsrBuild && viteCommand === "build" ? {
|
|
296
297
|
isSsrBuild: true,
|
|
@@ -305,6 +306,7 @@ const reactRouterVitePlugin = _config => {
|
|
|
305
306
|
entryClientFilePath,
|
|
306
307
|
entryReactServerFilePath,
|
|
307
308
|
entryServerFilePath,
|
|
309
|
+
publicPath,
|
|
308
310
|
viteManifestEnabled,
|
|
309
311
|
...ssrBuildCtx
|
|
310
312
|
};
|
|
@@ -332,7 +334,7 @@ const reactRouterVitePlugin = _config => {
|
|
|
332
334
|
export const basename = ${JSON.stringify(ctx.reactRouterConfig.basename)};
|
|
333
335
|
export const future = ${JSON.stringify(ctx.reactRouterConfig.future)};
|
|
334
336
|
export const isSpaMode = ${!ctx.reactRouterConfig.ssr && ctx.reactRouterConfig.prerender == null};
|
|
335
|
-
export const publicPath = ${JSON.stringify(ctx.
|
|
337
|
+
export const publicPath = ${JSON.stringify(ctx.publicPath)};
|
|
336
338
|
export const entry = { module: entryServer };
|
|
337
339
|
export const routes = {
|
|
338
340
|
${Object.keys(routes).map((key, index) => {
|
|
@@ -459,7 +461,7 @@ const reactRouterVitePlugin = _config => {
|
|
|
459
461
|
};
|
|
460
462
|
let version = getHash(JSON.stringify(fingerprintedValues), 8);
|
|
461
463
|
let manifestPath = path__namespace.posix.join(viteConfig.build.assetsDir, `manifest-${version}.js`);
|
|
462
|
-
let url = `${ctx.
|
|
464
|
+
let url = `${ctx.publicPath}${manifestPath}`;
|
|
463
465
|
let nonFingerprintedValues = {
|
|
464
466
|
url,
|
|
465
467
|
version
|
|
@@ -494,7 +496,7 @@ const reactRouterVitePlugin = _config => {
|
|
|
494
496
|
path: route.path,
|
|
495
497
|
index: route.index,
|
|
496
498
|
caseSensitive: route.caseSensitive,
|
|
497
|
-
module: path__namespace.posix.join(ctx.
|
|
499
|
+
module: path__namespace.posix.join(ctx.publicPath, `${resolveFileUrl.resolveFileUrl(ctx, resolveRelativeRouteFilePath(route, ctx.reactRouterConfig))}`),
|
|
498
500
|
hasAction: sourceExports.includes("action"),
|
|
499
501
|
hasLoader: sourceExports.includes("loader"),
|
|
500
502
|
hasClientAction: sourceExports.includes("clientAction"),
|
|
@@ -505,12 +507,12 @@ const reactRouterVitePlugin = _config => {
|
|
|
505
507
|
}
|
|
506
508
|
return {
|
|
507
509
|
version: String(Math.random()),
|
|
508
|
-
url: path__namespace.posix.join(ctx.
|
|
510
|
+
url: path__namespace.posix.join(ctx.publicPath, vmod.url(browserManifestId)),
|
|
509
511
|
hmr: {
|
|
510
|
-
runtime: path__namespace.posix.join(ctx.
|
|
512
|
+
runtime: path__namespace.posix.join(ctx.publicPath, vmod.url(injectHmrRuntimeId))
|
|
511
513
|
},
|
|
512
514
|
entry: {
|
|
513
|
-
module: path__namespace.posix.join(ctx.
|
|
515
|
+
module: path__namespace.posix.join(ctx.publicPath, resolveFileUrl.resolveFileUrl(ctx, ctx.entryClientFilePath)),
|
|
514
516
|
imports: []
|
|
515
517
|
},
|
|
516
518
|
routes
|
|
@@ -1221,8 +1223,8 @@ async function getRouteMetadata(ctx, viteChildCompiler, route, readRouteFile) {
|
|
|
1221
1223
|
path: route.path,
|
|
1222
1224
|
index: route.index,
|
|
1223
1225
|
caseSensitive: route.caseSensitive,
|
|
1224
|
-
url: path__namespace.posix.join(ctx.
|
|
1225
|
-
module: path__namespace.posix.join(ctx.
|
|
1226
|
+
url: path__namespace.posix.join(ctx.publicPath, "/" + path__namespace.relative(ctx.rootDirectory, resolveRelativeRouteFilePath(route, ctx.reactRouterConfig))),
|
|
1227
|
+
module: path__namespace.posix.join(ctx.publicPath, `${resolveFileUrl.resolveFileUrl(ctx, resolveRelativeRouteFilePath(route, ctx.reactRouterConfig))}?import`),
|
|
1226
1228
|
// Ensure the Vite dev server responds with a JS module
|
|
1227
1229
|
hasAction: sourceExports.includes("action"),
|
|
1228
1230
|
hasClientAction: sourceExports.includes("clientAction"),
|
package/dist/vite/profiler.js
CHANGED
package/dist/vite/styles.js
CHANGED
package/dist/vite/vmod.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/dev",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-9aebdc522",
|
|
4
4
|
"description": "Dev tools and CLI for React Router",
|
|
5
5
|
"homepage": "https://reactrouter.com",
|
|
6
6
|
"bugs": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"semver": "^7.3.7",
|
|
44
44
|
"set-cookie-parser": "^2.6.0",
|
|
45
45
|
"unplugin-rsc": "0.0.9",
|
|
46
|
-
"@react-router/node": "0.0.0-experimental-
|
|
47
|
-
"
|
|
48
|
-
"react-router": "0.0.0-experimental-
|
|
46
|
+
"@react-router/node": "0.0.0-experimental-9aebdc522",
|
|
47
|
+
"react-router": "0.0.0-experimental-9aebdc522",
|
|
48
|
+
"@react-router/server-runtime": "0.0.0-experimental-9aebdc522"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/babel__core": "^7.20.5",
|
|
@@ -71,15 +71,15 @@
|
|
|
71
71
|
"tiny-invariant": "^1.2.0",
|
|
72
72
|
"vite": "^5.1.0",
|
|
73
73
|
"wrangler": "^3.28.2",
|
|
74
|
-
"@react-router/serve": "0.0.0-experimental-
|
|
74
|
+
"@react-router/serve": "0.0.0-experimental-9aebdc522"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react-server-dom-diy": "*",
|
|
78
78
|
"typescript": "^5.1.0",
|
|
79
79
|
"vite": "^5.1.0",
|
|
80
80
|
"wrangler": "^3.28.2",
|
|
81
|
-
"react-router": "^0.0.0-experimental-
|
|
82
|
-
"@react-router/serve": "^0.0.0-experimental-
|
|
81
|
+
"react-router": "^0.0.0-experimental-9aebdc522",
|
|
82
|
+
"@react-router/serve": "^0.0.0-experimental-9aebdc522"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
85
85
|
"@react-router/serve": {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
export default () => {
|
|
5
|
-
import("react");
|
|
6
|
-
import("react/jsx-dev-runtime");
|
|
7
|
-
import("react/jsx-runtime");
|
|
8
|
-
import("react-dom");
|
|
9
|
-
import("react-dom/client");
|
|
10
|
-
import("react-refresh/runtime");
|
|
11
|
-
import("react-router-dom");
|
|
12
|
-
import("react-router:hmr");
|
|
13
|
-
};
|