Skip to content

Commit

Permalink
Pass --experimental flag to workerd (#397)
Browse files Browse the repository at this point in the history
This is required to use compatibility flags without a default-on
date, e.g. `streams_enable_constructors`
  • Loading branch information
mrbbot committed Nov 1, 2023
1 parent 8005fe7 commit 10f9a39
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/miniflare/src/runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,16 @@ export interface RuntimeConstructor {
distribution: string;
}

const COMMON_RUNTIME_ARGS = ["serve", "--binary", "--verbose"];
const COMMON_RUNTIME_ARGS = [
"serve",
// Required to use binary capnp config
"--binary",
// Required to display `console.log()` output
"--verbose",
// Required to use compatibility flags without a default-on date,
// (e.g. "streams_enable_constructors"), see https://github.com/cloudflare/workerd/pull/21
"--experimental",
];
// `__dirname` relative to bundled output `dist/src/index.js`
const RESTART_PATH = path.resolve(__dirname, "..", "..", "lib", "restart.sh");

Expand Down

0 comments on commit 10f9a39

Please sign in to comment.