Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c65d986

Browse files
committed
Assume --modules if --durable-object set
1 parent 52b4115 commit c65d986

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/miniflare/src/cli.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ async function main() {
6868
if (options.buildWatchPaths?.length || options.liveReload) {
6969
options.watch = true;
7070
}
71+
// Assume --modules if --durable-object set
72+
if (options.durableObjects && Object.keys(options.durableObjects).length) {
73+
options.modules = true;
74+
}
7175

7276
// TODO: warn if script path is src/... but dist/... exists, or build command set, or type webpack/rust
7377

0 commit comments

Comments
 (0)