Skip to content

Commit

Permalink
upgrade to last svelte-hmr (fixes support for svelte >= 3.24.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
rixo committed Aug 24, 2020
1 parent 4071bfc commit 1351638
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions lib/svelte3/make-hot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ const { createMakeHot } = require('svelte-hmr');

const hotApi = require.resolve('./hot-api.js');

const makeHot = createMakeHot(hotApi, {
meta: 'module',
const makeHot = createMakeHot({
walk,
meta: 'module',
hotApi,
});

module.exports = makeHot;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"loader-utils": "^1.1.0",
"svelte-dev-helper": "^1.1.9",
"svelte-hmr": "^0.6.0-0"
"svelte-hmr": "^0.10.3"
},
"devDependencies": {
"chai": "^4.1.2",
Expand Down
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -819,9 +819,10 @@ svelte-dev-helper@^1.1.9:
version "1.1.9"
resolved "https://registry.yarnpkg.com/svelte-dev-helper/-/svelte-dev-helper-1.1.9.tgz#7d187db5c6cdbbd64d75a32f91b8998bde3273c3"

svelte-hmr@^0.6.0-0:
version "0.6.0-0"
resolved "https://registry.yarnpkg.com/svelte-hmr/-/svelte-hmr-0.6.0-0.tgz#9fab12b17093427642a3bc593bd6f473af8fedac"
svelte-hmr@^0.10.3:
version "0.10.3"
resolved "https://registry.yarnpkg.com/svelte-hmr/-/svelte-hmr-0.10.3.tgz#6939a6ae483bb0180e0f3f120554d947e00d2223"
integrity sha512-s90yAPnfGE6rTbq9Vvq73z1XqLJ2qGw0VjorpwKfDZRIsB0/Ozu+uF5cyC1fS3dCyQcS2sZDMt4zQ/qDjDwa/Q==

svelte@^3.19.1:
version "3.19.1"
Expand Down

0 comments on commit 1351638

Please sign in to comment.