Skip to content

Commit 2b3746c

Browse files
Apply suggestions from code review
Co-authored-by: Ben McCann <[email protected]>
1 parent a53c0b6 commit 2b3746c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

documentation/docs/25-build-and-deploy/99-writing-adapters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function (options) {
2424
supports: {
2525
read: ({ config, route }) => {
2626
// Return `true` if the route with the given `config` can use `read`
27-
// from `$app/server` in production, return `false`` if it can't.
27+
// from `$app/server` in production, return `false` if it can't.
2828
// Or throw a descriptive error describing how to configure the deployment
2929
}
3030
}

packages/kit/src/exports/vite/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ async function kit({ svelte_config }) {
714714
return {
715715
code: code.replace(/__SVELTEKIT_TRACK__\('(.+?)'\)/g, (_, label) => {
716716
(tracked_features[chunk.name + '.js'] ??= []).push(label);
717+
// put extra whitespace at the end of the comment to preserve the source size and avoid interfering with source maps
717718
return `/* track ${label} */`;
718719
}),
719720
map: null // TODO we may need to generate a sourcemap in future

0 commit comments

Comments
 (0)