From a1efde8b105766652e1280aaaa6f731b9d135069 Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 14 Dec 2021 14:42:14 +0100 Subject: [PATCH] v: list all js backends in `v help build-js` (#12835) --- cmd/v/help/build-js.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/v/help/build-js.txt b/cmd/v/help/build-js.txt index 269665843c..b432293d25 100644 --- a/cmd/v/help/build-js.txt +++ b/cmd/v/help/build-js.txt @@ -2,6 +2,12 @@ Usage: v -b js [-options] ['run'] [run options] This command compiles the given target, along with their dependencies, into an Javascript source file. +Note that `js` defaults to the `node` codegen backend but it's also possible to pick another: + +* `js_browser` - V outputs JS source code ready for the browser. +* `js_node` - V outputs JS source code to run with nodejs. +* `js_freestanding` - V outputs JS source code with no hard runtime dependency. + For more general build help, see also `v help build`. # Interfacing the Javascript Backend code generation, passing options to it: