@sveltejs/vite-plugin-svelte 4.0.0-next.5 → 4.0.0-next.7
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/package.json +6 -6
- package/src/public.d.ts +1 -1
- package/src/utils/esbuild.js +3 -6
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/vite-plugin-svelte",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "dominikg",
|
|
6
6
|
"files": [
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"debug": "^4.3.6",
|
|
41
41
|
"deepmerge": "^4.3.1",
|
|
42
42
|
"kleur": "^4.1.5",
|
|
43
|
-
"magic-string": "^0.30.
|
|
44
|
-
"vitefu": "^0.2
|
|
43
|
+
"magic-string": "^0.30.11",
|
|
44
|
+
"vitefu": "^1.0.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"svelte": "^5.0.0-next.96 || ^5.0.0",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/debug": "^4.1.12",
|
|
52
|
-
"esbuild": "^0.23.
|
|
52
|
+
"esbuild": "^0.23.1",
|
|
53
53
|
"sass": "^1.77.8",
|
|
54
|
-
"svelte": "^5.0.0-next.
|
|
55
|
-
"vite": "^5.
|
|
54
|
+
"svelte": "^5.0.0-next.242",
|
|
55
|
+
"vite": "^5.4.2"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"check:publint": "publint --strict",
|
package/src/public.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ interface PluginOptionsInline extends PluginOptions {
|
|
|
15
15
|
configFile?: string | false;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
interface PluginOptions {
|
|
18
|
+
export interface PluginOptions {
|
|
19
19
|
/**
|
|
20
20
|
* A `picomatch` pattern, or array of patterns, which specifies the files the plugin should
|
|
21
21
|
* operate on. By default, all svelte files are included.
|
package/src/utils/esbuild.js
CHANGED
|
@@ -70,12 +70,9 @@ async function compileSvelte(options, { filename, code }, statsCollection) {
|
|
|
70
70
|
generate: 'client'
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
if (compileOptions.hmr) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
compileOptions.cssHash = () => hash;
|
|
77
|
-
}
|
|
78
|
-
compileOptions.hmr = false;
|
|
73
|
+
if (compileOptions.hmr && options.emitCss) {
|
|
74
|
+
const hash = `s-${safeBase64Hash(normalize(filename, options.root))}`;
|
|
75
|
+
compileOptions.cssHash = () => hash;
|
|
79
76
|
}
|
|
80
77
|
|
|
81
78
|
let preprocessed;
|
package/types/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare module '@sveltejs/vite-plugin-svelte' {
|
|
|
15
15
|
configFile?: string | false;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
interface PluginOptions {
|
|
18
|
+
export interface PluginOptions {
|
|
19
19
|
/**
|
|
20
20
|
* A `picomatch` pattern, or array of patterns, which specifies the files the plugin should
|
|
21
21
|
* operate on. By default, all svelte files are included.
|
package/types/index.d.ts.map
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"file": "index.d.ts",
|
|
4
4
|
"names": [
|
|
5
5
|
"Options",
|
|
6
|
+
"PluginOptions",
|
|
6
7
|
"SvelteConfig",
|
|
7
8
|
"VitePreprocessOptions",
|
|
8
9
|
"svelte",
|
|
@@ -21,5 +22,5 @@
|
|
|
21
22
|
null,
|
|
22
23
|
null
|
|
23
24
|
],
|
|
24
|
-
"mappings": ";;;;aAIYA,OAAOA
|
|
25
|
+
"mappings": ";;;;aAIYA,OAAOA;;;;;;;;;;;;;kBAaFC,aAAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgGbC,YAAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8EZC,qBAAqBA;;;;;;;;;;;;;iBCvKtBC,MAAMA;iBCTNC,cAAcA;iBCgBRC,gBAAgBA"
|
|
25
26
|
}
|