@sveltejs/kit 2.17.0 → 2.17.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.17.0",
3
+ "version": "2.17.1",
4
4
  "description": "SvelteKit is the fastest way to build Svelte apps",
5
5
  "keywords": [
6
6
  "framework",
@@ -1,4 +1,4 @@
1
- import { base, assets } from '__sveltekit/paths';
1
+ import { base, assets, relative } from '__sveltekit/paths';
2
2
  import { text } from '../../../exports/index.js';
3
3
  import { s } from '../../../utils/misc.js';
4
4
  import { exec } from '../../../utils/routing.js';
@@ -47,6 +47,10 @@ function create_client_import(import_path, url) {
47
47
  return `import('${assets}/${import_path}')`;
48
48
  }
49
49
 
50
+ if (!relative) {
51
+ return `import('${base}/${import_path}')`;
52
+ }
53
+
50
54
  // Else we make them relative to the server-side route resolution request
51
55
  // to support IPFS, the internet archive, etc.
52
56
  let path = get_relative_path(url.pathname, `${base}/${import_path}`);
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.17.0';
4
+ export const VERSION = '2.17.1';