We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e816b commit 9dbdf8dCopy full SHA for 9dbdf8d
src/plugin.rs
@@ -11,7 +11,9 @@ pub struct Config {
11
}
12
13
fn replace_ts_extension(src: &ast::Str, config: &Config) -> Option<ast::Str> {
14
- if src.value.ends_with(".ts") && !src.value.ends_with(".d.ts") {
+ if !src.value.starts_with('.') {
15
+ return None;
16
+ } else if src.value.ends_with(".ts") && !src.value.ends_with(".d.ts") {
17
if let Some(file) = src.value.strip_suffix(".ts") {
18
return Some(format!("{}.js", file).into());
19
0 commit comments