ezolenko / rollup-plugin-typescript2

Rollup plugin for typescript with compiler errors.
MIT License
822 stars 71 forks source link

fix(host): `getScriptSnapshot` must also call `fileNames.add` #364

Closed agilgur5 closed 2 years ago

agilgur5 commented 2 years ago

Summary

Make getScriptSnapshot match/call setSnapshot. Previously, a this.fileNames.add call was added to setSnapshot but not getScriptSnapshot, causing a Could not find source file error.

Details

See https://github.com/ezolenko/rollup-plugin-typescript2/issues/271#issuecomment-1163625864 and my other comment above it for a root cause analysis.