@sveltejs/kit 1.0.0-next.552 → 1.0.0-next.553

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.0.0-next.552",
3
+ "version": "1.0.0-next.553",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -107,9 +107,6 @@ function kit() {
107
107
  /** @type {import('types').BuildData} */
108
108
  let build_data;
109
109
 
110
- /** @type {string | undefined} */
111
- let deferred_warning;
112
-
113
110
  /** @type {{ public: Record<string, string>; private: Record<string, string> }} */
114
111
  let env;
115
112
 
@@ -284,7 +281,9 @@ function kit() {
284
281
  }
285
282
  };
286
283
 
287
- deferred_warning = warn_overridden_config(config, result);
284
+ const warning = warn_overridden_config(config, result);
285
+ if (warning) console.error(warning);
286
+
288
287
  return result;
289
288
  },
290
289
 
@@ -334,6 +333,10 @@ function kit() {
334
333
  */
335
334
  configResolved(config) {
336
335
  vite_config = config;
336
+
337
+ // This is a hack to prevent Vite from nuking useful logs,
338
+ // pending https://github.com/vitejs/vite/issues/9378
339
+ config.logger.warn('');
337
340
  },
338
341
 
339
342
  /**
@@ -540,14 +543,6 @@ function kit() {
540
543
  * @see https://vitejs.dev/guide/api-plugin.html#configureserver
541
544
  */
542
545
  async configureServer(vite) {
543
- // This method is called by Vite after clearing the screen.
544
- // This patch ensures we can log any important messages afterwards for the user to see.
545
- const print_urls = vite.printUrls;
546
- vite.printUrls = function () {
547
- print_urls.apply(this);
548
- if (deferred_warning) console.error('\n' + deferred_warning);
549
- };
550
-
551
546
  return await dev(vite, vite_config, svelte_config);
552
547
  },
553
548