Skip to content

Commit

Permalink
fix hotfile path
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Dec 12, 2023
1 parent 0860706 commit 24598fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 `<publicDirectory>/<buildDirectory>/.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
Expand Down
5 changes: 3 additions & 2 deletions packages/vite/src/plugin/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
}
}

Expand Down

0 comments on commit 24598fb

Please sign in to comment.