diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-03-21 11:46:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 15:46:40 +0000 |
commit | 2fcf1f14cf29bb68995f652f93a4f6e3cb55c8d7 (patch) | |
tree | 04fb972934969cb01a52f3b9b8af0a17134ef5b6 /runtime/build.rs | |
parent | 0366d6833f25b786e897ce0d6393f692507f0532 (diff) |
feat: TypeScript 5.0.2 (except decorators) (#18294)
This upgrades TypeScript to 5.0.2, but does not have ES decorator
support because swc does not support that yet.
Diffstat (limited to 'runtime/build.rs')
-rw-r--r-- | runtime/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/build.rs b/runtime/build.rs index 346dbe439..016ece810 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -22,7 +22,7 @@ mod startup_snapshot { fn transpile_ts_for_snapshotting( file_source: &ExtensionFileSource, ) -> Result<String, AnyError> { - let media_type = MediaType::from(Path::new(&file_source.specifier)); + let media_type = MediaType::from_path(Path::new(&file_source.specifier)); let should_transpile = match media_type { MediaType::JavaScript => false, |