@rsvelte/vite-plugin-svelte 0.3.0 → 0.4.0
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 +8 -9
- package/src/plugins/configure.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsvelte/vite-plugin-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "dominikg",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/baseballyama/
|
|
24
|
-
"directory": "
|
|
23
|
+
"url": "git+https://github.com/baseballyama/rsvelte.git",
|
|
24
|
+
"directory": "apps/npm/vite-plugin-svelte"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"vite-plugin",
|
|
@@ -30,27 +30,26 @@
|
|
|
30
30
|
"svelte"
|
|
31
31
|
],
|
|
32
32
|
"bugs": {
|
|
33
|
-
"url": "https://github.com/baseballyama/
|
|
33
|
+
"url": "https://github.com/baseballyama/rsvelte/issues"
|
|
34
34
|
},
|
|
35
|
-
"homepage": "https://github.com/baseballyama/vite-plugin-svelte#readme",
|
|
35
|
+
"homepage": "https://github.com/baseballyama/rsvelte/tree/main/apps/npm/vite-plugin-svelte#readme",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@rsvelte/vite-plugin-svelte-native": ">=0.1.0",
|
|
38
37
|
"@sveltejs/vite-plugin-svelte-inspector": "^5.0.0",
|
|
39
38
|
"deepmerge": "^4.3.1",
|
|
40
39
|
"magic-string": "^0.30.21",
|
|
41
40
|
"obug": "^2.1.0",
|
|
42
41
|
"vitefu": "^1.1.1",
|
|
43
|
-
"@rsvelte/
|
|
42
|
+
"@rsvelte/vite-plugin-svelte-native": "^0.2.3"
|
|
44
43
|
},
|
|
45
44
|
"peerDependencies": {
|
|
46
45
|
"svelte": "^5.0.0",
|
|
47
|
-
"vite": "^6.3.0 || ^7.0.0"
|
|
46
|
+
"vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
49
|
"@types/debug": "^4.1.12",
|
|
51
50
|
"sass": "^1.94.2",
|
|
52
51
|
"svelte": "^5.45.4",
|
|
53
|
-
"vite": "^
|
|
52
|
+
"vite": "^8.0.0"
|
|
54
53
|
},
|
|
55
54
|
"scripts": {
|
|
56
55
|
"check:publint": "publint --strict",
|
package/src/plugins/configure.js
CHANGED
|
@@ -22,9 +22,11 @@ const { version: viteVersion, rolldownVersion } = vite;
|
|
|
22
22
|
* @returns {import('vite').Plugin}
|
|
23
23
|
*/
|
|
24
24
|
export function configure(api, inlineOptions) {
|
|
25
|
-
|
|
25
|
+
// Stable vite 8 is supported; only warn for pre-release (beta/rc) builds,
|
|
26
|
+
// whose version string carries a `-` suffix (e.g. `8.0.0-beta.7`).
|
|
27
|
+
if (rolldownVersion && viteVersion.includes('-')) {
|
|
26
28
|
log.warn.once(
|
|
27
|
-
`!!! Support for vite 8
|
|
29
|
+
`!!! Support for vite 8 pre-releases in vite-plugin-svelte is experimental (rolldown: ${rolldownVersion}, vite: ${viteVersion}) !!!
|
|
28
30
|
See https://github.com/sveltejs/vite-plugin-svelte/issues/1143 for a list of known issues and to report feedback.`.replace(
|
|
29
31
|
/\t+/g,
|
|
30
32
|
'\t'
|