Skip to content

Commit e9433ea

Browse files
committed
refactor(svelte): migrate to svelte 5
1 parent 2bdb46f commit e9433ea

File tree

13 files changed

+145
-210
lines changed

13 files changed

+145
-210
lines changed

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,5 @@
2828
"lint-staged": "16.2.7",
2929
"taze": "^19.9.2"
3030
},
31-
"packageManager": "pnpm@10.28.2",
32-
"pnpm": {
33-
"overrides": {
34-
"react-focus-lock": "2.13.7"
35-
}
36-
}
31+
"packageManager": "pnpm@10.28.2"
3732
}

pnpm-lock.yaml

Lines changed: 61 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rspack/basic-ts/rspack.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default defineConfig({
2222
module: {
2323
rules: [
2424
{
25-
test: /\.ts$/,
25+
test: /\.(?:js|ts)$/,
2626
use: [
2727
{
2828
loader: 'builtin:swc-loader',

rspack/svelte/index.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset='utf-8'>
5-
<meta name='viewport' content='width=device-width,initial-scale=1'>
6-
<title><%= htmlWebpackPlugin.options.title %></title>
7-
</head>
8-
<body>
9-
</body>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width,initial-scale=1" />
6+
</head>
7+
<body></body>
108
</html>

rspack/svelte/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.0.0",
44
"private": true,
55
"scripts": {
6-
"analyze": "cross-env NODE_ENV=production rspack build --analyze",
76
"build": "rspack build",
87
"dev": "rspack dev",
98
"validate": "svelte-check"
@@ -14,14 +13,12 @@
1413
"@tsconfig/svelte": "^5.0.6",
1514
"@types/node": "^24.10.9",
1615
"cross-env": "^10.1.0",
17-
"html-rspack-plugin": "^6.1.6",
1816
"postcss-load-config": "6.0.1",
19-
"svelte": "^3.59.2",
17+
"svelte": "^5.53.3",
2018
"svelte-check": "^4.3.6",
2119
"svelte-loader": "^3.2.4",
2220
"svelte-preprocess": "^6.0.3",
2321
"tslib": "^2.8.1",
24-
"typescript": "^5.9.3",
25-
"webpack-bundle-analyzer": "5.2.0"
22+
"typescript": "^5.9.3"
2623
}
2724
}

rspack/svelte/public/favicon.png

-3.05 KB
Binary file not shown.

0 commit comments

Comments
 (0)