Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/swc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn parse_swc_ast(file_path: &Path, file_extension: Option<&str>, file_text:
let lowercase_ext = file_extension.map(|ext| ext.to_string()).or_else(|| get_lowercase_extension(file_path));
let new_file_path = match lowercase_ext.as_deref() {
Some("ts") | Some("cts") | Some("mts") => file_path.with_extension("tsx"),
Some("js") | Some("cjs") | Some("mjs") => file_path.with_extension("jsx"),
Some("js") | Some("cjs") | Some("mjs") | Some("gs") => file_path.with_extension("jsx"),
_ => return Err(err),
};
// try to parse as jsx
Expand Down
2 changes: 2 additions & 0 deletions src/wasm_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ impl SyncPluginHandler<Configuration> for TypeScriptPluginHandler {
String::from("cjs"),
String::from("mts"),
String::from("cts"),
// Google App Script
String::from("gs"),
],
file_names: vec![],
},
Expand Down