/rollup-ts-bug

Primary LanguageJavaScript

rollup-ts-bug

Demonstrates a bug with @wessberg/rollup-plugin-ts where empty declarations are generated when using rollup cache

To reproduce

  1. Clone this repo
  2. Run npm install
  3. Run npm run build, which will do the following:
    1. Load rollup config, which checks for presence of cache file, which is absent this first run
    2. Bundles the index file with rollup
    3. Writes the bundle cache to disk
    4. Writes the bundle to disk
  4. Verify declarations in the dist directory are generated correctly; drink an 🍻
  5. Run npm run build (cache is now present)
  6. Verify declarations in the dist directory are empty; cry some 😭