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

v.gen.js: add source map creation support (inline only, no src) (#10384)

This commit is contained in:
Andreas Heissenberger
2021-06-10 07:33:46 +02:00
committed by GitHub
parent 14519bbf5c
commit 96c8d147b2
17 changed files with 1275 additions and 39 deletions

22
cmd/v/help/build-js.txt Normal file
View File

@@ -0,0 +1,22 @@
Usage: v -b js [-options] ['run'] <target.v|target_directory> [run options]
This command compiles the given target, along with their dependencies, into an Javascript source file.
For more general build help, see also `v help build`.
# Interfacing the Javascript Backend code generation, passing options to it:
-prod
Do not create any JS Doc comments
-sourcemap
Create a source map for debugging
-sourcemap-inline
Embed the source map directly into the JavaScript source file
(currently default, external source map files not implemented)
-sourcemap-src-include
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