Skip to content

Commit 4bf9292

Browse files
committed
docs: update README to include additional arguments for Dart compiler in generate command
1 parent fbc74dd commit 4bf9292

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,14 @@ dart run isolate_manager:generate
659659
* `--debug`: Retain temporary files created during generation for debugging purposes.
660660
* `--worker-mappings-experiment=lib/main.dart` (Experimental): Attempt to auto-generate `workerMappings` for `IsolateManager.createShared` by scanning the specified Dart file.
661661

662+
You can also pass additional arguments to the underlying Dart compiler by adding `--` after the generator command. For example:
663+
664+
```shell
665+
dart run isolate_manager:generate -- --omit-implicit-checks --no-source-maps
666+
```
667+
668+
These arguments will be forwarded to the Dart process (useful for `dart2js` / `dart compile js` or other Dart compiler options).
669+
662670
## Additional Tips
663671

664672
* **Queue Length:** Check `isolateManagerInstance.queuesLength` to get the current number of tasks in the queue.

0 commit comments

Comments
 (0)