Skip to content

Commit

Permalink
bump selte-hmr, adding support for CSS injection
Browse files Browse the repository at this point in the history
  • Loading branch information
rixo committed Apr 23, 2020
1 parent e2231be commit c89d752
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ export default {
// setup.
noDisableCss: true,

// When you change only the <style> part of a component, then only the
// CSS will be reinjected. Existing component instances won't be
// recreated. Set `false` to force recreation.
injectCss: true,

// Delay to mitigate FOUC (flash of unstyled content) when a component
// is updated, before the new version with the new CSS is loaded.
cssEjectDelay: 100,

// Prevent adding an HMR accept handler to components with
// accessors option to true, or to components with named exports
// (from <script context="module">). This have the effect of
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"rollup-plugin-hot": "^0.0.9-0",
"rollup-pluginutils": "^2.8.2",
"sourcemap-codec": "^1.4.8",
"svelte-hmr": "^0.6.0"
"svelte-hmr": "^0.7.0"
},
"optionalDependencies": {
"nollup": ">=0.8.4"
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2061,9 +2061,9 @@ supports-color@^7.1.0:
dependencies:
has-flag "^4.0.0"

svelte-hmr@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/svelte-hmr/-/svelte-hmr-0.6.0.tgz#649fdbdae874a60ab9d71637c74557758f679345"
svelte-hmr@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/svelte-hmr/-/svelte-hmr-0.7.0.tgz#a287ad8b1bec984fbd08e882e34b297a66c7194e"

svelte@^3.0.0-beta.5:
version "3.20.1"
Expand Down

0 comments on commit c89d752

Please sign in to comment.