There is a similar question. That covers what typescript does with the option. The below question and answer covers where the lib
files come from at runtime.
When I looked up the description for the --lib
compiler option it says:
List of library files to be included in the compilation.
What are these library files and how are they included? The repository I'm studying has the following settings?
"compilerOptions": {
"target": "es5",
"module": "es2015",
"lib": ["es2015", "dom"]
},
How would the output be different if --lib
were not set to ["es2015", "dom"]
?