rsbuild-plugin-react-router 0.0.4 → 0.0.5
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/index.cjs +7 -1
- package/dist/index.js +7 -1
- package/dist/server-utils.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -371,7 +371,11 @@ export { ${output.exports.map((exp)=>'default' === exp ? 'defaultExport as defau
|
|
|
371
371
|
basename,
|
|
372
372
|
appDirectory,
|
|
373
373
|
ssr,
|
|
374
|
-
federation: options.federation
|
|
374
|
+
federation: options.federation,
|
|
375
|
+
routeDiscovery: {
|
|
376
|
+
mode: 'lazy',
|
|
377
|
+
manifestPath: '/__manifest'
|
|
378
|
+
}
|
|
375
379
|
}).federation ? `
|
|
376
380
|
// Create a module cache to store the dynamically imported module
|
|
377
381
|
let entryServerModule = null;
|
|
@@ -434,6 +438,7 @@ export { ${output.exports.map((exp)=>'default' === exp ? 'defaultExport as defau
|
|
|
434
438
|
export const future = ${JSON.stringify({})};
|
|
435
439
|
export const isSpaMode = ${!options1.ssr};
|
|
436
440
|
export const ssr = ${options1.ssr};
|
|
441
|
+
export const routeDiscovery = ${JSON.stringify(options1.routeDiscovery)};
|
|
437
442
|
export const publicPath = "/";
|
|
438
443
|
export const prerender = [];
|
|
439
444
|
export const entry = { module: entryServer };
|
|
@@ -464,6 +469,7 @@ export { ${output.exports.map((exp)=>'default' === exp ? 'defaultExport as defau
|
|
|
464
469
|
export const future = ${JSON.stringify({})};
|
|
465
470
|
export const isSpaMode = ${!options1.ssr};
|
|
466
471
|
export const ssr = ${options1.ssr};
|
|
472
|
+
export const routeDiscovery = ${JSON.stringify(options1.routeDiscovery)};
|
|
467
473
|
export const prerender = [];
|
|
468
474
|
export const publicPath = "/";
|
|
469
475
|
export const entry = { module: entryServer };
|
package/dist/index.js
CHANGED
|
@@ -356,7 +356,11 @@ let pluginReactRouter = (options = {})=>({
|
|
|
356
356
|
basename,
|
|
357
357
|
appDirectory,
|
|
358
358
|
ssr,
|
|
359
|
-
federation: options.federation
|
|
359
|
+
federation: options.federation,
|
|
360
|
+
routeDiscovery: {
|
|
361
|
+
mode: 'lazy',
|
|
362
|
+
manifestPath: '/__manifest'
|
|
363
|
+
}
|
|
360
364
|
}).federation ? `
|
|
361
365
|
// Create a module cache to store the dynamically imported module
|
|
362
366
|
let entryServerModule = null;
|
|
@@ -419,6 +423,7 @@ let pluginReactRouter = (options = {})=>({
|
|
|
419
423
|
export const future = ${JSON.stringify({})};
|
|
420
424
|
export const isSpaMode = ${!options1.ssr};
|
|
421
425
|
export const ssr = ${options1.ssr};
|
|
426
|
+
export const routeDiscovery = ${JSON.stringify(options1.routeDiscovery)};
|
|
422
427
|
export const publicPath = "/";
|
|
423
428
|
export const prerender = [];
|
|
424
429
|
export const entry = { module: entryServer };
|
|
@@ -449,6 +454,7 @@ let pluginReactRouter = (options = {})=>({
|
|
|
449
454
|
export const future = ${JSON.stringify({})};
|
|
450
455
|
export const isSpaMode = ${!options1.ssr};
|
|
451
456
|
export const ssr = ${options1.ssr};
|
|
457
|
+
export const routeDiscovery = ${JSON.stringify(options1.routeDiscovery)};
|
|
452
458
|
export const prerender = [];
|
|
453
459
|
export const publicPath = "/";
|
|
454
460
|
export const entry = { module: entryServer };
|
package/dist/server-utils.d.ts
CHANGED
|
@@ -12,5 +12,11 @@ declare function generateServerBuild(routes: Record<string, Route>, options: {
|
|
|
12
12
|
appDirectory: string;
|
|
13
13
|
ssr: boolean;
|
|
14
14
|
federation?: boolean;
|
|
15
|
+
routeDiscovery: {
|
|
16
|
+
mode: 'lazy';
|
|
17
|
+
manifestPath?: string;
|
|
18
|
+
} | {
|
|
19
|
+
mode: 'initial';
|
|
20
|
+
} | undefined;
|
|
15
21
|
}): string;
|
|
16
22
|
export { generateServerBuild };
|