@sveltejs/kit 2.0.0 → 2.0.1

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": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "The fastest way to build Svelte apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -660,10 +660,10 @@ export function create_client(app, target) {
660
660
  server: server_data_node,
661
661
  universal: node.universal?.load ? { type: 'data', data, uses } : null,
662
662
  data: data ?? server_data_node?.data ?? null,
663
- // if `paths.base === '/a/b/c`, then the root route is `/a/b/c/`,
664
- // regardless of the `trailingSlash` route option
663
+ // if `paths.base === '/a/b/c`, then the root route is always `/a/b/c/`, regardless of
664
+ // the `trailingSlash` route option, so that relative paths to JS and CSS work
665
665
  slash:
666
- url.pathname === base || url.pathname === base + '/'
666
+ base && (url.pathname === base || url.pathname === base + '/')
667
667
  ? 'always'
668
668
  : node.universal?.trailingSlash ?? server_data_node?.slash
669
669
  };
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '2.0.0';
4
+ export const VERSION = '2.0.1';