Skip to content

Commit 5f8291e

Browse files
committed
fix: enable the auto-loader when required
1 parent b5ea64c commit 5f8291e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/serve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl Serve {
162162
watch: rt::WatchOptions {
163163
build: rt::BuildOptions {
164164
core,
165-
inject_autoloader: false,
165+
inject_autoloader: !cfg.serve.no_autoreload,
166166
},
167167
poll: self.watch.poll.then_some(self.watch.poll_interval.0),
168168
enable_cooldown: self.watch.enable_cooldown,

0 commit comments

Comments
 (0)