@poveste/plugin-svelte 0.18.0 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/util/story-hmr.d.ts +10 -0
- package/dist/util/story-hmr.js +10 -0
- package/package.json +7 -7
package/dist/util/story-hmr.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
export declare function disableStoryComponentHmr(): {
|
|
2
2
|
name: string;
|
|
3
3
|
apply: "serve";
|
|
4
|
+
handleHotUpdate({ file, server }: {
|
|
5
|
+
file: string;
|
|
6
|
+
server: {
|
|
7
|
+
ws: {
|
|
8
|
+
send: (payload: {
|
|
9
|
+
type: "full-reload";
|
|
10
|
+
}) => void;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}): never[] | undefined;
|
|
4
14
|
configResolved(config: {
|
|
5
15
|
readonly plugins: readonly unknown[];
|
|
6
16
|
}): void;
|
package/dist/util/story-hmr.js
CHANGED
|
@@ -3,6 +3,16 @@ export function disableStoryComponentHmr() {
|
|
|
3
3
|
return {
|
|
4
4
|
name: 'poveste:svelte-story-hmr',
|
|
5
5
|
apply: 'serve',
|
|
6
|
+
// With component HMR off, nothing in the sandbox takes the updated story module:
|
|
7
|
+
// the edit was collected and never shown until a manual reload (#1178). A reload
|
|
8
|
+
// shows it, as for Solid, at the cost of whatever was set in the panel.
|
|
9
|
+
handleHotUpdate({ file, server }) {
|
|
10
|
+
if (!storyFileRE.test(file)) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
server.ws.send({ type: 'full-reload' });
|
|
14
|
+
return [];
|
|
15
|
+
},
|
|
6
16
|
configResolved(config) {
|
|
7
17
|
for (const plugin of config.plugins) {
|
|
8
18
|
if (plugin.name !== 'vite-plugin-svelte:config' || plugin.__povesteStoryHmrPatched) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poveste/plugin-svelte",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.2",
|
|
5
5
|
"description": "Poveste plugin for Svelte 5 and SvelteKit support",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"dist"
|
|
61
61
|
],
|
|
62
62
|
"engines": {
|
|
63
|
-
"node": ">=
|
|
63
|
+
"node": ">=22.22.2"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@sveltejs/kit": "^2.53.0 || ^3.0.0",
|
|
67
67
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
68
|
-
"poveste": "^0.18.
|
|
68
|
+
"poveste": "^0.18.2",
|
|
69
69
|
"svelte": "^5.46.4"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@poveste/controls": "^0.18.
|
|
78
|
-
"@poveste/shared": "^0.18.
|
|
79
|
-
"@poveste/vendors": "^0.18.
|
|
77
|
+
"@poveste/controls": "^0.18.2",
|
|
78
|
+
"@poveste/shared": "^0.18.2",
|
|
79
|
+
"@poveste/vendors": "^0.18.2",
|
|
80
80
|
"change-case": "^5.4.4",
|
|
81
81
|
"ignore": "^7.0.10",
|
|
82
82
|
"launch-editor": "^2.9.1",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"concurrently": "^10.0.5",
|
|
90
90
|
"fs-extra": "^11.4.1",
|
|
91
91
|
"jsdom": "^30.1.1",
|
|
92
|
-
"poveste": "0.18.
|
|
92
|
+
"poveste": "0.18.2",
|
|
93
93
|
"svelte": "5.57.1",
|
|
94
94
|
"svelte-preprocess": "^6.0.5",
|
|
95
95
|
"typescript": "6.0.3",
|