Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
  • Loading branch information
Rich-Harris and benmccann authored Jan 18, 2024
1 parent a53c0b6 commit 2b3746c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function (options) {
supports: {
read: ({ config, route }) => {
// Return `true` if the route with the given `config` can use `read`
// from `$app/server` in production, return `false`` if it can't.
// from `$app/server` in production, return `false` if it can't.
// Or throw a descriptive error describing how to configure the deployment
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/kit/src/exports/vite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,7 @@ async function kit({ svelte_config }) {
return {
code: code.replace(/__SVELTEKIT_TRACK__\('(.+?)'\)/g, (_, label) => {
(tracked_features[chunk.name + '.js'] ??= []).push(label);
// put extra whitespace at the end of the comment to preserve the source size and avoid interfering with source maps
return `/* track ${label} */`;
}),
map: null // TODO we may need to generate a sourcemap in future
Expand Down

0 comments on commit 2b3746c

Please sign in to comment.