podman-desktop/svelte.config.js
Fred Bricon ba9518d7ec fix(svelte): migrate HMR configuration for Svelte 5 compatibility
Moved HMR configuration from vite plugin's 'hot' option to compilerOptions.hmr
in svelte.config.js as required by Svelte 5, which has HMR integrated in core.

This fixes the warning: "[vite-plugin-svelte] svelte 5 has hmr integrated in
core. Please remove the vitePlugin.hot option and use compilerOptions.hmr instead"

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Signed-off-by: Fred Bricon <[email protected]>
2026-03-23 15:37:53 +01:00

29 lines
971 B
JavaScript

/**********************************************************************
* Copyright (C) 2025 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
***********************************************************************/
/** @type {import('@sveltejs/kit').Config} */
const config = {
compilerOptions: {
hmr: !process.env.VITEST,
experimental: {
async: true,
},
},
};
export default config;