@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,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