Skip to content

Commit

Permalink
feat: Moved from svelte-preprocess to @sveltejs/vite-plugin-svelte vi…
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Fanger committed Apr 27, 2023
1 parent 0abedd2 commit e42f6bd
Show file tree
Hide file tree
Showing 6 changed files with 442 additions and 341 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ export default {
};
```

When using other processors like [svelte-preprocess]() use:
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:

```js
// svelte.config.js
import preprocess from "svelte-preprocess";
import { vitePreprocess } from "@sveltejs/kit/vite";
import preprocessReact from "svelte-preprocess-react/preprocessReact";

export default {
preprocess: preprocessReact({
preprocess: preprocess({ sourceMap: true }),
preprocess: vitePreprocess(),
}),
};
```
Expand Down
31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@
]
},
"devDependencies": {
"@playwright/test": "^1.32.3",
"@playwright/test": "^1.33.0",
"@sveltejs/adapter-static": "^2.0.2",
"@sveltejs/kit": "^1.15.5",
"@sveltejs/kit": "^1.15.9",
"@sveltejs/package": "1",
"@testing-library/react": "^14.0.0",
"@testing-library/svelte": "^3.2.2",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@types/react-dom": "^18.2.1",
"@types/react": "^18.2.0",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"@vitejs/plugin-react": "3",
"autoprefixer": "^10.4.14",
"concurrently": "^8.0.1",
"eslint": "^8.38.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.8.0",
Expand All @@ -68,26 +68,25 @@
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-svelte3": "^4.0.0",
"eslint": "^8.39.0",
"husky": "^8.0.3",
"jsdom": "^21.1.1",
"lint-staged": "^13.2.1",
"postcss": "^8.4.21",
"prettier": "^2.8.7",
"lint-staged": "^13.2.2",
"postcss": "^8.4.23",
"prettier-plugin-svelte": "^2.10.0",
"react": "^18.2.0",
"prettier": "^2.8.8",
"react-dom": "^18.2.0",
"sass": "^1.62.0",
"svelte": "^3.58.0",
"react": "^18.2.0",
"sass": "^1.62.1",
"svelte-check": "^3.2.0",
"svelte-preprocess": "^5.0.3",
"svelte": "^3.58.0",
"svelte2tsx": "^0.6.11",
"typescript": "^5.0.4",
"vite": "^4.2.1",
"vite-tsconfig-paths": "^4.2.0",
"vite": "^4.3.3",
"vitest": "^0.30.1"
},
"dependencies": {
"@vitejs/plugin-react": "^3.1.0",
"magic-string": "^0.30.0"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit e42f6bd

Please sign in to comment.