Skip to content
Merged
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
6 changes: 6 additions & 0 deletions packages/typescript-plugin/src/svelte-sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ export function createSvelteSys(ts: _ts, logger: Logger) {
const extensionsWithSvelte = (extensions ?? []).concat('.svelte');

return ts.sys.readDirectory(path, extensionsWithSvelte, exclude, include, depth);
},
readFile(path, encoding) {
// imba typescript plugin patch this with Object.defineProperty
// and copying the property descriptor from a class that extends the original ts.sys
// so we explicitly define it here
return ts.sys.readFile(path, encoding);
}
};

Expand Down