rixo / rollup-plugin-svelte-hot

Fork of official rollup-plugin-svelte with added HMR support (for both Nollup or Rollup)
MIT License
47 stars 6 forks source link

Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier. #14

Open jakobrosenberg opened 4 years ago

jakobrosenberg commented 4 years ago

Getting this error when running tsc in a project that depends on `rollup-plugin-svelte-hot.

../node_modules/.pnpm/rollup-plugin-svelte-hot@0.10.0_rollup@2.28.2+svelte@3.29.0/node_modules/rollup-plugin-svelte-hot/index.d.ts:10:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.    

10 class CssWriter {
   ~~~~~
rixo commented 3 years ago

Aren't you getting the same thing with the official plugin? The types declaration essentially comes from there...

We've just merged a more recent version, can you confirm if you still get this with rollup-plugin-svelte-hot@next (0.11.0-1)?