Skip to content

Commit 9252361

Browse files
committed
remove-css-modules: correctly get name of module declaration
1 parent 5ace445 commit 9252361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/src/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default (proxy: ts.LanguageService, info: ts.server.PluginCreateInfo, c:
138138
}
139139
return false
140140
})
141-
if (moduleDeclaration?.name.getText() === '*.module.css') return false
141+
if (moduleDeclaration?.name.text === '*.module.css') return false
142142
}
143143
return true
144144
})

0 commit comments

Comments
 (0)