@sveltejs/kit 1.2.7 → 1.2.8

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": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -164,7 +164,15 @@ export async function render_response({
164
164
  }
165
165
 
166
166
  /** @param {string} path */
167
- const prefixed = (path) => (path.startsWith('/') ? path : `${resolved_assets}/${path}`);
167
+ const prefixed = (path) => {
168
+ if (path.startsWith('/')) {
169
+ // Vite makes the start script available through the base path and without it.
170
+ // We load it via the base path in order to support remote IDE environments which proxy
171
+ // all URLs under the base path during development.
172
+ return base + path;
173
+ }
174
+ return `${resolved_assets}/${path}`;
175
+ };
168
176
 
169
177
  const serialized = { data: '', form: 'null', error: 'null' };
170
178