Skip to content

Commit d15ada3

Browse files
committed
Fixed esbuild reload #647
1 parent 203e22e commit d15ada3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Go to the `v1` branch to see the changelog of Lume 1.
2121
- Remove empty directories in `dest` folder.
2222
- Watcher new files on Windows.
2323
- Feed plugin: error when the updated/published value is a string [#638].
24+
- Fixed esbuild reload [#647].
2425

2526
## [2.2.4] - 2024-07-18
2627
### Added
@@ -469,6 +470,7 @@ Go to the `v1` branch to see the changelog of Lume 1.
469470
[#633]: https://github.com/lumeland/lume/issues/633
470471
[#634]: https://github.com/lumeland/lume/issues/634
471472
[#638]: https://github.com/lumeland/lume/issues/638
473+
[#647]: https://github.com/lumeland/lume/issues/647
472474

473475
[Unreleased]: https://github.com/lumeland/lume/compare/v2.2.4...HEAD
474476
[2.2.4]: https://github.com/lumeland/lume/compare/v2.2.3...v2.2.4

plugins/esbuild.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,13 @@ export function esbuild(userOptions?: Options) {
111111
site.addEventListener("beforeSave", stop);
112112

113113
/** Run esbuild and returns the output files */
114+
const entryContent: Record<string, string> = {};
115+
114116
async function runEsbuild(
115117
pages: Page[],
116118
extraOptions: BuildOptions = {},
117119
): Promise<[OutputFile[], boolean]> {
118120
let enableAllSourceMaps = false;
119-
const entryContent: Record<string, string> = {};
120121
const entryPoints: string[] = [];
121122

122123
pages.forEach((page) => {

0 commit comments

Comments
 (0)