Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-01-24 | Do not panic and improve error message on cache failure (#3784) | Kevin (Kun) "Kassimo" Qian | |
2020-01-04 | Use async at places, use &self instead of self: &Self (#3594) | Gurwinder Singh | |
2019-08-12 | fix: cache paths on Windows are broken (#2760) | Bartek Iwańczuk | |
2019-07-31 | refactor: cleanup compiler pipeline (#2686) | Bartek Iwańczuk | |
* remove fetch_source_file_and_maybe_compile_async and replace it with State.fetch_compiled_module * remove SourceFile.js_source() * introduce CompiledModule which is basically the same as deno::SourceInfo and represents arbitrary file that has been compiled to JS module * introduce //cli/compilers module containing all compilers * introduce JsCompiler which is a no-op compiler - output is the same as input, no compilation takes place - it is used for MediaType::JavaScript and MediaType::Unknown * introduce JsonCompiler that wraps JSON in default export * support JS-to-JS compilation using checkJs | |||
2019-07-17 | Refactor DenoDir (#2636) | Bartek Iwańczuk | |
* rename `ModuleMetaData` to `SourceFile` and remove TS specific functionality * add `TsCompiler` struct encapsulating processing of TypeScript files * move `SourceMapGetter` trait implementation to `//cli/compiler.rs` * add low-level `DiskCache` API for general purpose caches and use it in `DenoDir` and `TsCompiler` for filesystem access * don't use hash-like filenames for compiled modules, instead use metadata file for storing compilation hash * add `SourceFileCache` for in-process caching of loaded files for fast subsequent access * define `SourceFileFetcher` trait encapsulating loading of local and remote files and implement it for `DenoDir` * define `use_cache` and `no_fetch` flags on `DenoDir` instead of using in fetch methods |