Skip to content

Commit

Permalink
Update svelte adapter to use bun
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrSaber committed Sep 6, 2024
1 parent f3c8d2f commit 07b9533
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
Binary file modified bun.lockb
Binary file not shown.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/kit": "^1.20.4",
"@types/bun": "^1.1.8",
"@types/lodash.memoize": "^4.1.9",
Expand All @@ -26,6 +25,7 @@
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.10.1",
"svelte": "^4.0.5",
"svelte-adapter-bun": "^0.5.2",
"svelte-check": "^3.4.3",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
Expand All @@ -36,7 +36,6 @@
"dependencies": {
"cheerio": "^1.0.0-rc.12",
"lodash.memoize": "^4.1.2",
"lodash.throttle": "^4.1.1",
"sqlite3": "^5.1.7"
"lodash.throttle": "^4.1.1"
}
}
20 changes: 10 additions & 10 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import adapter from '@sveltejs/adapter-node';
import adapter from 'svelte-adapter-bun';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),

kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter(),
},
};

export default config;

0 comments on commit 07b9533

Please sign in to comment.