Skip to content

Commit 2f3f8c6

Browse files
committed
fix: 🐛 esbuild server wasn't watching restart
1 parent 61043d7 commit 2f3f8c6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elderjs/elderjs",
3-
"version": "1.5.4",
3+
"version": "1.5.5",
44
"main": "./build/index.js",
55
"types": "./build/index.d.ts",
66
"engineStrict": true,

src/rollup/rollupPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export const devServer = ({
352352
// this should watch the ./src, elder.config.js, and the client side folders... trigging a restart of the server when something changes
353353
// We don't want to change when a svelte file changes because it will cause a double reload when rollup outputs the rebundled file.
354354

355-
if (isDev && !srcWatcher) {
355+
if ((isDev || forceStart) && !srcWatcher) {
356356
srcWatcher = chokidar.watch(
357357
[
358358
path.resolve(process.cwd(), './src'),

0 commit comments

Comments
 (0)