@sveltejs/kit 1.0.0-next.291 → 1.0.0-next.292

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.
@@ -2,17 +2,14 @@ import { s } from './misc.js';
2
2
  import { a as get_mime_lookup } from '../cli.js';
3
3
 
4
4
  /**
5
- * @param {import('types').BuildData} build_data;
6
- * @param {string} relative_path;
7
- * @param {import('types').RouteData[]} routes;
8
- * @param {'esm' | 'cjs'} format
5
+ * @param {{
6
+ * build_data: import('types').BuildData;
7
+ * relative_path: string;
8
+ * routes: import('types').RouteData[];
9
+ * format?: 'esm' | 'cjs'
10
+ * }} opts
9
11
  */
10
- function generate_manifest(
11
- build_data,
12
- relative_path,
13
- routes = build_data.manifest_data.routes,
14
- format = 'esm'
15
- ) {
12
+ function generate_manifest({ build_data, relative_path, routes, format = 'esm' }) {
16
13
  /** @typedef {{ index: number, path: string }} LookupEntry */
17
14
  /** @type {Map<string, LookupEntry>} */
18
15
  const bundled_nodes = new Map();
@@ -72,6 +69,7 @@ function generate_manifest(
72
69
  if (route.type === 'page') {
73
70
  return `{
74
71
  type: 'page',
72
+ key: ${s(route.key)},
75
73
  pattern: ${route.pattern},
76
74
  params: ${get_params(route.params)},
77
75
  path: ${route.path ? s(route.path) : null},