@sveltejs/vite-plugin-svelte 1.0.1 → 1.0.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/index.cjs +198 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +193 -69
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
- package/src/handle-hot-update.ts +1 -1
- package/src/ui/inspector/plugin.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/vite-plugin-svelte",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "dominikg",
|
|
6
6
|
"files": [
|
|
@@ -59,15 +59,14 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@sveltejs/kit": "^1.0.0-next.370",
|
|
63
62
|
"@types/debug": "^4.1.7",
|
|
64
63
|
"@types/diff-match-patch": "^1.0.32",
|
|
65
64
|
"diff-match-patch": "^1.0.5",
|
|
66
|
-
"esbuild": "^0.
|
|
67
|
-
"rollup": "^2.
|
|
65
|
+
"esbuild": "^0.15.3",
|
|
66
|
+
"rollup": "^2.78.0",
|
|
68
67
|
"svelte": "^3.49.0",
|
|
69
|
-
"tsup": "^6.
|
|
70
|
-
"vite": "^3.0.
|
|
68
|
+
"tsup": "^6.2.2",
|
|
69
|
+
"vite": "^3.0.8"
|
|
71
70
|
},
|
|
72
71
|
"scripts": {
|
|
73
72
|
"dev": "pnpm build:ci --sourcemap --watch src",
|
package/src/handle-hot-update.ts
CHANGED
|
@@ -105,7 +105,7 @@ function isCodeEqual(prev?: string, next?: string): boolean {
|
|
|
105
105
|
/**
|
|
106
106
|
* remove code that only changes metadata and does not require a js update for the component to keep working
|
|
107
107
|
*
|
|
108
|
-
* 1) add_location() calls. These add location metadata to elements, only
|
|
108
|
+
* 1) add_location() calls. These add location metadata to elements, only used by some dev tools
|
|
109
109
|
* 2) ... maybe more (or less) in the future
|
|
110
110
|
* @param code
|
|
111
111
|
*/
|
|
@@ -44,7 +44,7 @@ export function svelteInspector(): Plugin {
|
|
|
44
44
|
} else {
|
|
45
45
|
if (vps.api.options.kit && !inspectorOptions.appendTo) {
|
|
46
46
|
const out_dir = path.basename(vps.api.options.kit.outDir || '.svelte-kit');
|
|
47
|
-
inspectorOptions.appendTo = `${out_dir}/
|
|
47
|
+
inspectorOptions.appendTo = `${out_dir}/generated/root.svelte`;
|
|
48
48
|
}
|
|
49
49
|
appendTo = inspectorOptions.appendTo;
|
|
50
50
|
}
|