@sveltejs/kit 1.7.0 → 1.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -16,13 +16,13 @@
16
16
  "devalue": "^4.2.3",
17
17
  "esm-env": "^1.0.0",
18
18
  "kleur": "^4.1.5",
19
- "magic-string": "^0.27.0",
19
+ "magic-string": "^0.29.0",
20
20
  "mime": "^3.0.0",
21
21
  "sade": "^1.8.1",
22
22
  "set-cookie-parser": "^2.5.1",
23
23
  "sirv": "^2.0.2",
24
24
  "tiny-glob": "^0.2.9",
25
- "undici": "5.18.0"
25
+ "undici": "5.19.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@playwright/test": "^1.29.2",
@@ -38,7 +38,7 @@
38
38
  "svelte-preprocess": "^5.0.0",
39
39
  "typescript": "^4.9.4",
40
40
  "uvu": "^0.5.6",
41
- "vite": "^4.0.4"
41
+ "vite": "^4.1.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "svelte": "^3.54.0",
@@ -1,4 +1,5 @@
1
1
  import { existsSync, statSync, createReadStream, createWriteStream } from 'node:fs';
2
+ import { join } from 'node:path/posix';
2
3
  import { pipeline } from 'node:stream';
3
4
  import { promisify } from 'node:util';
4
5
  import zlib from 'node:zlib';
@@ -181,7 +182,12 @@ export function create_builder({
181
182
  },
182
183
 
183
184
  writeClient(dest) {
184
- return [...copy(`${config.kit.outDir}/output/client`, dest)];
185
+ const server_assets = copy(
186
+ `${config.kit.outDir}/output/server/${config.kit.appDir}/immutable/assets`,
187
+ join(dest, config.kit.appDir, 'immutable/assets')
188
+ ).map((filename) => join(config.kit.appDir, 'immutable/assets', filename));
189
+ const client_assets = copy(`${config.kit.outDir}/output/client`, dest);
190
+ return Array.from(new Set([...server_assets, ...client_assets]));
185
191
  },
186
192
 
187
193
  // @ts-expect-error
@@ -502,6 +502,7 @@ export function set_assets(path) {
502
502
  },
503
503
  preserveEntrySignatures: 'strict'
504
504
  },
505
+ ssrEmitAssets: true,
505
506
  target: ssr ? 'node16.14' : undefined,
506
507
  // don't use the default name to avoid collisions with 'static/manifest.json'
507
508
  manifest: 'vite-manifest.json'