From 0d68eaf67b52c9e8404eefd0d6fa8e3b8bbf866c Mon Sep 17 00:00:00 2001 From: jill64 Date: Thu, 19 Oct 2023 21:24:13 +0900 Subject: [PATCH 1/3] fix: npm dev script --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 0f358153..0e0e50aa 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,11 @@ "access": "public" }, "scripts": { + "dev": "cd packages/site && pnpm dev", "build:pages": "pnpm build:lib && pnpm build:site && npx publint", "build:lib": "cd packages/lib && pnpm build", "build:site": "cd packages/site && pnpm build", + "preview": "pnpm build:lib && cd packages/site && pnpm preview", "prepack": "pnpm build:lib", "test:e2e": "npx playwright install && playwright test", "lint": "npx prettier --check . --plugin prettier-plugin-svelte . && npx eslint && pnpm check", From 1b40ce27a33876d1958bd5b418989de875c98417 Mon Sep 17 00:00:00 2001 From: jill64 Date: Fri, 20 Oct 2023 12:07:12 +0900 Subject: [PATCH 2/3] docs: add vite.config.js configuration --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index bb75deb1..17549a17 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,24 @@ Workaround until close [sentry-javascript/#8693](https://github.com/getsentry/se npm i @jill64/sentry-sveltekit-cloudflare ``` +## Configuration + +Add the following settings to your SvelteKit application's vite.config.js. + +```js +// vite.config.js +import { sveltekit } from "@sveltejs/kit/vite"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [sveltekit()], + ssr: { + noExternal: ["@jill64/sentry-sveltekit-cloudflare"], + }, + // ... +}); +``` + ## Usage ```js From e7640cacac8b4886185a8f6e2a4013cb2921909e Mon Sep 17 00:00:00 2001 From: "ghost-lint[bot]" <41898282+ghost-lint[bot]@users.noreply.github.com> Date: Fri, 20 Oct 2023 03:08:09 +0000 Subject: [PATCH 3/3] chore: format --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 17549a17..02b55e6f 100644 --- a/README.md +++ b/README.md @@ -18,16 +18,16 @@ Add the following settings to your SvelteKit application's vite.config.js. ```js // vite.config.js -import { sveltekit } from "@sveltejs/kit/vite"; -import { defineConfig } from "vite"; +import { sveltekit } from '@sveltejs/kit/vite' +import { defineConfig } from 'vite' export default defineConfig({ plugins: [sveltekit()], ssr: { - noExternal: ["@jill64/sentry-sveltekit-cloudflare"], - }, - // ... -}); + noExternal: ['@jill64/sentry-sveltekit-cloudflare'] + } + // ... +}) ``` ## Usage