diff --git a/CHANGELOG.md b/CHANGELOG.md index c3de02da..8c6f232e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.0.0-alpha.3](https://github.com/supercharge/framework/compare/v4.0.0-alpha.2...v4.0.0-alpha.3) - 2023-xx-xx + +### Fixed +- `@supercharge/vite` + - create correct `hotFilePath` to `//.vite/hot.json` + + ## [4.0.0-alpha.2](https://github.com/supercharge/framework/compare/v4.0.0-alpha.1...v4.0.0-alpha.2) - 2023-12-12 ### Added diff --git a/packages/vite/src/plugin/plugin.ts b/packages/vite/src/plugin/plugin.ts index 3d09149c..efaca4dc 100644 --- a/packages/vite/src/plugin/plugin.ts +++ b/packages/vite/src/plugin/plugin.ts @@ -60,14 +60,15 @@ function resolvePluginConfig (config: string | string[] | PluginConfigContract): } const publicDirectory = config.publicDirectory ?? 'public' + const buildDirectory = config.buildDirectory ?? 'build' return { input: config.input, publicDirectory, - buildDirectory: config.buildDirectory ?? 'build', + buildDirectory, ssr: config.ssr ?? config.input, ssrOutputDirectory: config.ssrOutputDirectory ?? 'bootstrap/ssr', - hotFilePath: config.hotFilePath ?? Path.join(publicDirectory, '.vite', 'hot'), + hotFilePath: config.hotFilePath ?? Path.join(publicDirectory, buildDirectory, '.vite', 'hot.json'), } }