Browse Source

Add Bun adapter and configure

master
buttercat1791 1 year ago
parent
commit
4c6fc3c49b
  1. 34
      package-lock.json
  2. 3
      package.json
  3. 10
      svelte.config.js

34
package-lock.json generated

@ -17,7 +17,8 @@ @@ -17,7 +17,8 @@
"d3": "^7.9.0",
"he": "1.2.x",
"nostr-tools": "2.10.x",
"playwright": "^1.50.1"
"playwright": "^1.50.1",
"svelte-adapter-bun": "^0.5.2"
},
"devDependencies": {
"@playwright/test": "^1.50.1",
@ -3646,6 +3647,18 @@ @@ -3646,6 +3647,18 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/globalyzer": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
"integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==",
"license": "MIT"
},
"node_modules/globrex": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",
"license": "MIT"
},
"node_modules/gopd": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
@ -5618,6 +5631,15 @@ @@ -5618,6 +5631,15 @@
"node": ">=18"
}
},
"node_modules/svelte-adapter-bun": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/svelte-adapter-bun/-/svelte-adapter-bun-0.5.2.tgz",
"integrity": "sha512-xEtFgaal6UgrCwwkSIcapO9kopoFNUYCYqyKCikdqxX9bz2TDYnrWQZ7qBnkunMxi1HOIERUCvTcebYGiarZLA==",
"license": "MIT",
"dependencies": {
"tiny-glob": "^0.2.9"
}
},
"node_modules/svelte-check": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.1.1.tgz",
@ -5964,6 +5986,16 @@ @@ -5964,6 +5986,16 @@
"node": ">=0.8"
}
},
"node_modules/tiny-glob": {
"version": "0.2.9",
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
"integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
"license": "MIT",
"dependencies": {
"globalyzer": "0.1.0",
"globrex": "^0.1.2"
}
},
"node_modules/tinybench": {
"version": "2.9.0",
"resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",

3
package.json

@ -23,7 +23,8 @@ @@ -23,7 +23,8 @@
"d3": "^7.9.0",
"he": "1.2.x",
"nostr-tools": "2.10.x",
"playwright": "^1.50.1"
"playwright": "^1.50.1",
"svelte-adapter-bun": "0.5.x"
},
"devDependencies": {
"@playwright/test": "^1.50.1",

10
svelte.config.js

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
import adapter from "@sveltejs/adapter-static";
import adapter from "svelte-adapter-bun";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
/** @type {import('@sveltejs/kit').Config} */
@ -10,11 +10,11 @@ const config = { @@ -10,11 +10,11 @@ const config = {
kit: {
// Static adapter
adapter: adapter({
pages: "build",
assets: "build",
fallback: "index.html",
out: "build",
assets: true,
envPrefix: "ALEX_",
development: false,
precompress: false,
strict: true,
}),
alias: {
$lib: "src/lib",

Loading…
Cancel
Save