1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/cli/tsc
Ryan Dahl bf9930066d
Reduce size of TypeScript Compiler snapshot (#6809)
This PR is intentionally ugly. It duplicates all of the code in cli/js2/ into
cli/tsc/  ... because it's very important that we all understand that this code
is unnecessarily duplicated in our binary. I hope this ugliness provides the
motivation to clean it up.

The typescript git submodule is removed, because it's a very large repo and
contains all sorts of stuff we don't need. Instead the necessary files are
copied directly into the deno repo. Hence +200k lines.

COMPILER_SNAPSHOT.bin size
```
master         3448139
this branch    3320972
```

Fixes #6812
2020-07-22 12:03:46 -04:00
..
00_bootstrap_namespace.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
00_typescript.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
01_build.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
01_colors.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
01_errors.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
01_event.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
01_internals.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
01_version.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
01_web_util.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
02_console.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
06_util.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
08_text_encoding.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
10_dispatch_json.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
11_timers.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
11_workers.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
40_diagnostics.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
40_error_stack.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
40_performance.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
90_deno_ns.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
99_main.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
99_main_compiler.js Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00
README.md Reduce size of TypeScript Compiler snapshot (#6809) 2020-07-22 12:03:46 -04:00

tsc

This directory contains the code for the typescript compiler snapshot

There is currently A LOT of overlap between this code and the runtime snapshot code in cli/js2.

This is intentionally ugly because there should be no overlap.

This directory ultimately should contain just typescript.js and a smallish CompilerHost.