mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
default to beta version
This commit is contained in:
parent
809039910b
commit
e2ff2f1d66
2
site/package-lock.json
generated
2
site/package-lock.json
generated
@ -1533,7 +1533,7 @@
|
||||
"dev": true
|
||||
},
|
||||
"eslint-plugin-svelte3": {
|
||||
"version": "git+https://github.com/sveltejs/eslint-plugin-svelte3.git#5fc4861d4b191649b0badf4f9a4c2470f08b237e",
|
||||
"version": "git+https://github.com/sveltejs/eslint-plugin-svelte3.git#6c9cc7b733663f8b9c68817ddd50d6bf4f5052c3",
|
||||
"from": "git+https://github.com/sveltejs/eslint-plugin-svelte3.git#semver:*",
|
||||
"dev": true
|
||||
},
|
||||
|
@ -8,7 +8,7 @@
|
||||
import Output from './Output/index.html';
|
||||
import InputOutputToggle from './InputOutputToggle.html';
|
||||
|
||||
export let version = 'alpha'; // TODO change this to latest when the time comes
|
||||
export let version = 'beta'; // TODO change this to latest when the time comes
|
||||
export let app;
|
||||
export let embedded = false;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<script context="module">
|
||||
export function preload({ query }) {
|
||||
return {
|
||||
version: query.version || 'alpha',
|
||||
version: query.version || 'beta',
|
||||
gist: query.gist,
|
||||
demo: query.demo
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
<script context="module">
|
||||
export function preload({ query }) {
|
||||
return {
|
||||
version: query.version || 'alpha',
|
||||
version: query.version || 'beta',
|
||||
gist_id: query.gist,
|
||||
demo: query.demo || 'hello-world'
|
||||
};
|
||||
@ -52,7 +52,7 @@
|
||||
|
||||
onMount(() => {
|
||||
if (version !== 'local') {
|
||||
fetch(`https://unpkg.com/svelte@${version || 'alpha'}/package.json`)
|
||||
fetch(`https://unpkg.com/svelte@${version || 'beta'}/package.json`)
|
||||
.then(r => r.json())
|
||||
.then(pkg => {
|
||||
version = pkg.version;
|
||||
|
Loading…
Reference in New Issue
Block a user