Svelte: HMR results in duplicate CSS

Created on 25 May 2020  路  6Comments  路  Source: sveltejs/svelte

Describe the bug
When {css: true} an HMR update results in duplicate CSS on the page.

To Reproduce

  • Run https://github.com/pikapkg/create-snowpack-app

    • npx create-snowpack-app new-dir --template @snowpack/app-template-svelte

  • Start your dev server

    • npm start

  • Open up your devtools, and see a single