Ben McCann

Results 1663 comments of Ben McCann

Example usage as of today shared on Discord by OP: ``` // Image.svelte import { dev } from '$app/environment'; let className = "" export { className as class }; export...

There are a couple PRs out for this: - https://github.com/sveltejs/kit/pull/10323, which supersedes a previous attempts in https://github.com/sveltejs/kit/pull/9787 - https://github.com/sveltejs/kit/pull/8667

Hi @hartwm, thanks so much for providing these examples! I do have one question I wonder if anyone knows the answer to. Vite lets you import images like this: ```...

I'm assuming we don't need this anymore since https://github.com/sveltejs/kit/pull/8585 was merged

> Related to https://github.com/sveltejs/kit/issues/8523 Should this close that issue or is there more to do?

I agree the docs in this PR are too broad. It seems like the thing that people trip over a lot is how to use stores with SSR. I think...

FYI: >Bad link: adapters#supported-environments-node-js in 20-core-concepts/20-load.md -- 11:18:32.447 | Bad link: adapters#supported-environments-platform-specific-context in 25-build-and-deploy/10-building-your-app.md 11:18:32.460 | Bad link: adapters#supported-environments-platform-specific-context in types/ambient.d.ts

If we go with this version, I'd put the new page under Advanced. This is basically just docs for `import { building } from '$app/environment'`, which feels out of place...

I really hate that we have to bump the adapter packages everytime we update their docs. Maybe we should take this opportunity to move their docs from the READMEs to...

@sellenth can you run `pnpm format` to fix the lint error?