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 14ec5da commit a5c3c21Copy full SHA for a5c3c21
src/index.ts
@@ -126,8 +126,7 @@ const init: tsModule.server.PluginModuleFactory = ({ typescript: ts }) => {
126
};
127
128
languageServiceHost.getScriptSnapshot = (fileName) => {
129
- const fileExists = fs.existsSync(fileName);
130
- if (fileExists && isCSS(fileName)) {
+ if (isCSS(fileName) && fs.existsSync(fileName)) {
131
return getDtsSnapshot(
132
ts,
133
processor,
0 commit comments