We need to use a different method for getting the meta info because `locate` is used to help construct the source map that references the preprocessed Svelte file. If we would now add source maps to that `locate` function it would go the the original source directly which means skipping potentially intermediate source maps which we would need in other situations. Sadly we can't map the character offset because for that we would need to the original source contents which we don't have in this context.
fixes#8360closes#8362
* simplify nav
* updates
* fix link
* Dont need this anymore
* bump
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: Puru Vijay <devpuruvj@gmail.com>
* DocsNav
* Push
* Nav title on each page
* Install jridgewell sourcemap codec. Why it breaking suddenly
* Use theme store
* Use $nav_title
* use $page.data.nav_title
* Disable global prerendering
* Fix Suppprters section
* use new method
* Initially hidden nav functionality
* Minor fixes
* Simplify into one single nav
* Accomodate to the bottom nav
* Minor fixes
* nit
* Add selected to other pages as well
* New way of passing to navbar
* Code cleanup
* Directly pass list instead of components
* 14 days
* Fix comment
* Discord icon
* Homepage styles
* More tweak, extra CTA
* Bigger lowercase tagline
* Preload overpass for transitions demo
* Tweak for ipad air
* Remove letter spacing
* simplify home page styles (#8738)
* simplify
* fix
* slightly better use of space
* tiny bit more room
* read the docs
* crop image
* very minor tweak
* another breakpoint
* tweak
* actually it works down to 1400px
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
---------
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Rich Harris <git@rich-harris.dev>
* DocsNav
* Push
* Nav title on each page
* Install jridgewell sourcemap codec. Why it breaking suddenly
* Use theme store
* Use $nav_title
* use $page.data.nav_title
* Disable global prerendering
* Fix Suppprters section
* use new method
* Initially hidden nav functionality
* Minor fixes
* Simplify into one single nav
* Accomodate to the bottom nav
* Minor fixes
* nit
* Add selected to other pages as well
* New way of passing to navbar
* Code cleanup
* Directly pass list instead of components
* 14 days
* Fix comment
* Discord icon
* Bump site-kit finally
* initialize playground
* pnpm up
* tidy up git ignore
* remove fluff
* format
* rm readme
* fix jsconfig error
* add skip-worktree instructions
* reload hack
* simplify
* use rollup
* ughh
* add flag for SSR
* ...
* simplify further
* configure launch.json
* add debugger info to readme
* remove vm modules flag
* use replaceAll instead of replace
* tidy up
* fix: make it run
* add watch to launch config
* New FAQ, new renderer
* Push blog stuff
* Fix blog posts
* Add tutorial to be rendered
* Update documentation/content/blog/2023-03-09-zero-config-type-safety.md
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Update documentation/content/blog/2023-03-09-zero-config-type-safety.md
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Revamp a lot of renderer, make it (soft) compatible with sveltekit
* Remove markdown types
* Clean up faq +page
* Document stuff
* Make the options more explicity
* chore(site-2): Restructure docs pt 2 (#8604)
* Push
* Update readme
* Push
* inor accessibility fix
* minr stuff
* Add prepare
* Run prettier
* Remove test script
* pnpm update
* Update sites/svelte.dev/src/routes/examples/[slug]/+page.svelte
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Update sites/svelte.dev/package.json
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
- remove esm bundle step
- introduce generated version.js because we can no longer use replace because we don't bundle esm
- remove register hook, cjs compiler output and cjs runtime
- keep umd compiler version for prettier/eslint/browser but without sourcemaps
- move devdependencies to dependencies where necessary
- various cleanup
---------
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
- shard runtime tests for better use of Vite's test parallelization
- merge custom element and other browser tests to run in one test suite and use esbuild in it
- on some setups only generate code output when test fails
Also swap out the require hook hacks with a less-hacky-but-still-somewhat-hacky loader for the Svelte files
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
* Push
* Push
* Fix Contents order
* Skip link to left sidemenu
* Add text class
* use top-nav slot
* Improve imagetools
* Fix aria-label
* Bump site-kit