@@ -58,20 +58,20 @@ graph TB
5858
5959## Key Modules
6060
61- | Path | Description |
62- | :--- | :--- |
63- | ` Source/Library.rs ` | Binary entry point; parses CLI arguments and dispatches to compiler |
64- | ` Source/Fn/OXC/Compiler.rs ` | Main compilation orchestrator; coordinates parser, transformer, and codegen |
65- | ` Source/Fn/OXC/Parser.rs ` | Wraps ` oxc_parser ` with error normalization and source tracking |
66- | ` Source/Fn/OXC/Transformer.rs ` | Applies TypeScript-to-JavaScript AST transformations including decorators |
67- | ` Source/Fn/OXC/Codegen.rs ` | Generates final JavaScript text from the transformed AST |
68- | ` Source/Fn/Build.rs ` | Directory-based compilation: walks source trees preserving structure |
69- | ` Source/Fn/Bundle/ ` | Bundling utilities for multi-file outputs |
70- | ` Source/Fn/NLS/ ` | Natural Language Support string extraction |
71- | ` Source/Fn/SWC/ ` | SWC integration shims (alternative transformer path) |
72- | ` Source/Fn/Worker/ ` | Worker thread support for parallel compilation |
73- | ` Source/Struct/CompilerConfig.rs ` | Configuration struct: decorator mode, class fields, source maps |
74- | ` Source/Struct/SWC.rs ` | SWC-specific configuration types |
61+ | Path | Description |
62+ | :-------------------------------- | :----------------------------------------------------------------------- --- |
63+ | ` Source/Library.rs ` | Binary entry point; parses CLI arguments and dispatches to compiler |
64+ | ` Source/Fn/OXC/Compiler.rs ` | Main compilation orchestrator; coordinates parser, transformer, and codegen |
65+ | ` Source/Fn/OXC/Parser.rs ` | Wraps ` oxc_parser ` with error normalization and source tracking |
66+ | ` Source/Fn/OXC/Transformer.rs ` | Applies TypeScript-to-JavaScript AST transformations including decorators |
67+ | ` Source/Fn/OXC/Codegen.rs ` | Generates final JavaScript text from the transformed AST |
68+ | ` Source/Fn/Build.rs ` | Directory-based compilation: walks source trees preserving structure |
69+ | ` Source/Fn/Bundle/ ` | Bundling utilities for multi-file outputs |
70+ | ` Source/Fn/NLS/ ` | Natural Language Support string extraction |
71+ | ` Source/Fn/SWC/ ` | SWC integration shims (alternative transformer path) |
72+ | ` Source/Fn/Worker/ ` | Worker thread support for parallel compilation |
73+ | ` Source/Struct/CompilerConfig.rs ` | Configuration struct: decorator mode, class fields, source maps |
74+ | ` Source/Struct/SWC.rs ` | SWC-specific configuration types |
7575
7676---
7777
@@ -105,24 +105,24 @@ Tokio worker threads and collects aggregated metrics.
105105
106106## Integration Points
107107
108- | Connecting Element | Direction | Mechanism | Description |
109- | :--- | :--- | :--- | :--- |
110- | ** Output** | Consumer | Process invocation / esbuild plugin | Output's ` RestPlugin.ts ` invokes the Rest binary or calls it via plugin API |
111- | ** Cocoon** | Indirect consumer | Compiled artifacts | Cocoon loads the JavaScript produced by Rest from ` Target/Microsoft/VSCode/ ` |
112- | ** Sky** | Indirect consumer | ` @codeeditorland/output ` package | Sky loads VSCode UI components compiled through the Rest pipeline |
108+ | Connecting Element | Direction | Mechanism | Description |
109+ | :----------------- | :---------------- | :---------------------------------- | :------------------------------------------------------------------------ --- |
110+ | ** Output** | Consumer | Process invocation / esbuild plugin | Output's ` RestPlugin.ts ` invokes the Rest binary or calls it via plugin API |
111+ | ** Cocoon** | Indirect consumer | Compiled artifacts | Cocoon loads the JavaScript produced by Rest from ` Target/Microsoft/VSCode/ ` |
112+ | ** Sky** | Indirect consumer | ` @codeeditorland/output ` package | Sky loads VSCode UI components compiled through the Rest pipeline |
113113
114114---
115115
116116## Configuration
117117
118- | Option | CLI Flag / Variable | Default | Description |
119- | :--- | :--- | :--- | :--- |
120- | Input path | ` --Input ` | required | Directory or file to compile |
121- | Output path | ` --Output ` | required | Destination directory for compiled JavaScript |
122- | Parallel mode | ` --Parallel ` | off | Enable multi-core parallel compilation |
123- | Decorator metadata | ` CompilerConfig ` | ` true ` | Emit ` emitDecoratorMetadata ` for VSCode compatibility |
124- | Class fields mode | ` CompilerConfig ` | ` false ` (VSCode default) | ` useDefineForClassFields ` — off matches VSCode's gulp build |
125- | Source maps | ` CompilerConfig ` | development only | Inline source maps for debug builds |
118+ | Option | CLI Flag / Variable | Default | Description |
119+ | :----------------- | :------------------ | :----------------------- | :------------------------------------------------------- --- |
120+ | Input path | ` --Input ` | required | Directory or file to compile |
121+ | Output path | ` --Output ` | required | Destination directory for compiled JavaScript |
122+ | Parallel mode | ` --Parallel ` | off | Enable multi-core parallel compilation |
123+ | Decorator metadata | ` CompilerConfig ` | ` true ` | Emit ` emitDecoratorMetadata ` for VSCode compatibility |
124+ | Class fields mode | ` CompilerConfig ` | ` false ` (VSCode default) | ` useDefineForClassFields ` — off matches VSCode's gulp build |
125+ | Source maps | ` CompilerConfig ` | development only | Inline source maps for debug builds |
126126
127127The ` CompilerConfig ` struct is populated from either CLI flags or from the
128128esbuild plugin context when Rest is invoked as a plugin within the Output build
0 commit comments