Skip to content

Commit e42f6bd

Browse files
author
Bob Fanger
committed
feat: Moved from svelte-preprocess to @sveltejs/vite-plugin-svelte vitePreprocess
https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/preprocess.md
1 parent 0abedd2 commit e42f6bd

File tree

6 files changed

+442
-341
lines changed

6 files changed

+442
-341
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ export default {
7272
};
7373
```
7474

75-
When using other processors like [svelte-preprocess]() use:
75+
When using other processors like [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/preprocess.md) or [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess) use:
7676

7777
```js
7878
// svelte.config.js
79-
import preprocess from "svelte-preprocess";
79+
import { vitePreprocess } from "@sveltejs/kit/vite";
8080
import preprocessReact from "svelte-preprocess-react/preprocessReact";
8181

8282
export default {
8383
preprocess: preprocessReact({
84-
preprocess: preprocess({ sourceMap: true }),
84+
preprocess: vitePreprocess(),
8585
}),
8686
};
8787
```

package.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@
4646
]
4747
},
4848
"devDependencies": {
49-
"@playwright/test": "^1.32.3",
49+
"@playwright/test": "^1.33.0",
5050
"@sveltejs/adapter-static": "^2.0.2",
51-
"@sveltejs/kit": "^1.15.5",
51+
"@sveltejs/kit": "^1.15.9",
5252
"@sveltejs/package": "1",
5353
"@testing-library/react": "^14.0.0",
5454
"@testing-library/svelte": "^3.2.2",
55-
"@types/react": "^18.0.35",
56-
"@types/react-dom": "^18.0.11",
57-
"@typescript-eslint/eslint-plugin": "^5.58.0",
58-
"@typescript-eslint/parser": "^5.58.0",
55+
"@types/react-dom": "^18.2.1",
56+
"@types/react": "^18.2.0",
57+
"@typescript-eslint/eslint-plugin": "^5.59.1",
58+
"@typescript-eslint/parser": "^5.59.1",
59+
"@vitejs/plugin-react": "3",
5960
"autoprefixer": "^10.4.14",
6061
"concurrently": "^8.0.1",
61-
"eslint": "^8.38.0",
6262
"eslint-config-airbnb-base": "^15.0.0",
6363
"eslint-config-airbnb-typescript": "^17.0.0",
6464
"eslint-config-prettier": "^8.8.0",
@@ -68,26 +68,25 @@
6868
"eslint-plugin-only-warn": "^1.1.0",
6969
"eslint-plugin-prettier": "^4.2.1",
7070
"eslint-plugin-svelte3": "^4.0.0",
71+
"eslint": "^8.39.0",
7172
"husky": "^8.0.3",
7273
"jsdom": "^21.1.1",
73-
"lint-staged": "^13.2.1",
74-
"postcss": "^8.4.21",
75-
"prettier": "^2.8.7",
74+
"lint-staged": "^13.2.2",
75+
"postcss": "^8.4.23",
7676
"prettier-plugin-svelte": "^2.10.0",
77-
"react": "^18.2.0",
77+
"prettier": "^2.8.8",
7878
"react-dom": "^18.2.0",
79-
"sass": "^1.62.0",
80-
"svelte": "^3.58.0",
79+
"react": "^18.2.0",
80+
"sass": "^1.62.1",
8181
"svelte-check": "^3.2.0",
82-
"svelte-preprocess": "^5.0.3",
82+
"svelte": "^3.58.0",
8383
"svelte2tsx": "^0.6.11",
8484
"typescript": "^5.0.4",
85-
"vite": "^4.2.1",
8685
"vite-tsconfig-paths": "^4.2.0",
86+
"vite": "^4.3.3",
8787
"vitest": "^0.30.1"
8888
},
8989
"dependencies": {
90-
"@vitejs/plugin-react": "^3.1.0",
9190
"magic-string": "^0.30.0"
9291
},
9392
"peerDependencies": {

0 commit comments

Comments
 (0)