Skip to content

Commit

Permalink
fix: vitePreprocss import
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackman99 committed Dec 23, 2023
1 parent c5b0c70 commit b33a409
Show file tree
Hide file tree
Showing 9 changed files with 852 additions and 872 deletions.
6 changes: 6 additions & 0 deletions .changeset/bright-pigs-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@sveltepress/theme-default": patch
"@sveltepress/vite": patch
---

fix: vitePreprocess import
5 changes: 4 additions & 1 deletion packages/docs-site-zh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
"workbox-window": "^7.0.0"
},
"type": "module",
"license": "MIT"
"license": "MIT",
"dependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/docs-site-zh/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vitePreprocess } from '@sveltejs/kit/vite'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
import adapter from '@sveltejs/adapter-static'
import { SERVICE_WORKER_PATH } from '@sveltepress/theme-default'

Expand Down
5 changes: 4 additions & 1 deletion packages/docs-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
"workbox-window": "^7.0.0"
},
"type": "module",
"license": "MIT"
"license": "MIT",
"dependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/docs-site/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vitePreprocess } from '@sveltejs/kit/vite'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
import adapter from '@sveltejs/adapter-static'
import { SERVICE_WORKER_PATH } from '@sveltepress/theme-default'

Expand Down
3 changes: 2 additions & 1 deletion packages/theme-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@docsearch/js": "^3.5.2",
"@iconify/json": "^2.2.158",
"@iconify/utils": "^2.1.13",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@vite-pwa/sveltekit": "^0.2.10",
"lru-cache": "^10.1.0",
"shiki": "^0.14.7",
Expand All @@ -54,7 +55,7 @@
"workbox-routing": "^7.0.0"
},
"peerDependencies": {
"@sveltejs/kit": "^1.20.4",
"@sveltejs/kit": "^1.20.4 || ^2.0.0",
"svelte": "^3.55.1 || ^4.0.0",
"vite": "^4.3.9 || ^5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vitePreprocess } from '@sveltejs/kit/vite'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

/**
* @type {import('@sveltejs/kit').Config}
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"yaml": "^2.3.4"
},
"peerDependencies": {
"@sveltejs/kit": "^1.20.4",
"@sveltejs/kit": "^1.20.4 || ^2.0.0",
"svelte": "^3.55.1 || ^4.0.0",
"vite": "^4.3.9 || ^5.0.0"
}
Expand Down
Loading

0 comments on commit b33a409

Please sign in to comment.