1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

js: support -es5 flag (#12846)

This commit is contained in:
playX
2021-12-15 16:47:34 +03:00
committed by GitHub
parent df7f2aa8a3
commit 11d2b8b354
14 changed files with 241 additions and 108 deletions

View File

@ -11,6 +11,8 @@ Note that `js` defaults to the `node` codegen backend but it's also possible to
For more general build help, see also `v help build`.
# Interfacing the Javascript Backend code generation, passing options to it:
-es5
Compile V to ES5 compatible code possibly shrinking output. Note that this flag might limit some types capabilities.
-prod
Do not create any JS Doc comments
@ -25,4 +27,4 @@ For more general build help, see also `v help build`.
Include the orginal V source files into the generated source map
(default false, all files in the source map are currently referenced by their absolute system file path)
The supported targets for the JS backend are: ES5 strict
The supported targets for the JS backend are: ES6 strict