fix: Use version 4 for examples and tutorial (#8806)

* Use version 4 for examples and tutorial

* Remove redundant import
pull/8809/head
Puru Vijay 2 years ago committed by GitHub
parent 797b711e3a
commit 08fe2bc596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
// REPL props // REPL props
export const svelteUrl = `https://unpkg.com/svelte@3`; export const svelteUrl = `https://unpkg.com/svelte@4`;
export const mapbox_setup = `window.MAPBOX_ACCESS_TOKEN = '${ export const mapbox_setup = `window.MAPBOX_ACCESS_TOKEN = '${
import.meta.env.VITE_MAPBOX_ACCESS_TOKEN import.meta.env.VITE_MAPBOX_ACCESS_TOKEN
}';`; }';`;

@ -6,8 +6,6 @@
import { mapbox_setup, svelteUrl } from '../../../config.js'; import { mapbox_setup, svelteUrl } from '../../../config.js';
import TableOfContents from './TableOfContents.svelte'; import TableOfContents from './TableOfContents.svelte';
import '@sveltejs/site-kit/styles/code.css';
export let data; export let data;
/** @type {import('@sveltejs/repl').default} */ /** @type {import('@sveltejs/repl').default} */

Loading…
Cancel
Save