This repository has been archived by the owner on May 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix snowpack babel error Snowpack released 1.2.0 which changed their babel plugin logic a bit. https://github.com/pikapkg/snowpack/pull/189/files#diff-dbcfdbbaf972e7b385fa6fcb270a59d9R60 Since we use their babel plugin, this broke our babel transform step. Fixed by using the new `importMap` option and specifying where to look for it. * Fix snapshots
- Loading branch information
1 parent
e7db092
commit 9c5c168
Showing
11 changed files
with
110 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
import { | ||
SvelteComponent as e, | ||
create_component as n, | ||
destroy_component as t, | ||
init as o, | ||
mount_component as r, | ||
create_component as t, | ||
destroy_component as r, | ||
init as n, | ||
mount_component as o, | ||
noop as s, | ||
safe_not_equal as m, | ||
transition_in as u, | ||
transition_out as d, | ||
} from '/web_modules/svelte/internal.js?v=undefined'; | ||
import { onMount as f } from '/web_modules/svelte/internal.js?v=undefined'; | ||
import i from './components/Header.js'; | ||
function l(e) { | ||
let o; | ||
const m = new i({}); | ||
transition_in as c, | ||
transition_out as f, | ||
} from '/web_modules/svelte/internal.js?rev=e87f930cb7'; | ||
import { onMount as l } from '/web_modules/svelte/internal.js?rev=e87f930cb7'; | ||
import u from './components/Header.js'; | ||
function i(e) { | ||
let n; | ||
const m = new u({}); | ||
return { | ||
c() { | ||
n(m.$$.fragment); | ||
t(m.$$.fragment); | ||
}, | ||
m(e, n) { | ||
r(m, e, n), (o = !0); | ||
m(e, t) { | ||
o(m, e, t), (n = !0); | ||
}, | ||
p: s, | ||
i(e) { | ||
o || (u(m.$$.fragment, e), (o = !0)); | ||
n || (c(m.$$.fragment, e), (n = !0)); | ||
}, | ||
o(e) { | ||
d(m.$$.fragment, e), (o = !1); | ||
f(m.$$.fragment, e), (n = !1); | ||
}, | ||
d(e) { | ||
t(m, e); | ||
r(m, e); | ||
}, | ||
}; | ||
} | ||
function c(e) { | ||
function a(e) { | ||
return ( | ||
f(() => { | ||
l(() => { | ||
console.log('mounted'); | ||
}), | ||
[] | ||
); | ||
} | ||
export default class extends e { | ||
constructor(e) { | ||
super(), o(this, e, c, l, m, {}); | ||
super(), n(this, e, a, i, m, {}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
import { | ||
SvelteComponent as e, | ||
append as t, | ||
attr as n, | ||
detach as s, | ||
attr as s, | ||
detach as n, | ||
element as l, | ||
init as r, | ||
insert as a, | ||
noop as o, | ||
safe_not_equal as d, | ||
} from '/web_modules/svelte/internal.js?v=undefined'; | ||
function b(e) { | ||
let r, d; | ||
safe_not_equal as b, | ||
} from '/web_modules/svelte/internal.js?rev=e87f930cb7'; | ||
function d(e) { | ||
let r, b; | ||
return { | ||
c() { | ||
(r = l('div')), | ||
(d = l('h1')), | ||
(d.textContent = `${v}`), | ||
n(d, 'class', 'svelte-nwbabr'), | ||
n(r, 'class', 'header svelte-nwbabr'); | ||
(b = l('h1')), | ||
(b.textContent = `${c}`), | ||
s(b, 'class', 'svelte-nwbabr'), | ||
s(r, 'class', 'header svelte-nwbabr'); | ||
}, | ||
m(e, n) { | ||
a(e, r, n), t(r, d); | ||
m(e, s) { | ||
a(e, r, s), t(r, b); | ||
}, | ||
p: o, | ||
i: o, | ||
o: o, | ||
d(e) { | ||
e && s(r); | ||
e && n(r); | ||
}, | ||
}; | ||
} | ||
const v = 'svelvetttttttt'; | ||
const c = 'svelvetttttttt'; | ||
export default class extends e { | ||
constructor(e) { | ||
var n; | ||
var s; | ||
super(), | ||
document.getElementById('svelte-nwbabr-style') || | ||
(((n = l('style')).id = 'svelte-nwbabr-style'), | ||
(n.textContent = | ||
(((s = l('style')).id = 'svelte-nwbabr-style'), | ||
(s.textContent = | ||
'h1.svelte-nwbabr{color:#000;font-size:70px}.header.svelte-nwbabr{max-width:800px}'), | ||
t(document.head, n)), | ||
r(this, e, null, b, d, {}); | ||
t(document.head, s)), | ||
r(this, e, null, d, b, {}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"imports": { | ||
"svelte/internal": "./svelte/internal.js" | ||
"svelte/internal": "./svelte/internal.js?rev=e87f930cb7" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import { | ||
SvelteComponent as e, | ||
detach as t, | ||
element as n, | ||
init as r, | ||
detach as r, | ||
element as t, | ||
init as n, | ||
insert as o, | ||
noop as s, | ||
safe_not_equal as l, | ||
} from '/web_modules/svelte/internal.js'; | ||
} from '/web_modules/svelte/internal.js?rev=e87f930cb7'; | ||
function u(e) { | ||
let r; | ||
let n; | ||
return { | ||
c() { | ||
(r = n('nav')), (r.innerHTML = '<a href="/">Home</a>'); | ||
(n = t('nav')), (n.innerHTML = '<a href="/">Home</a>'); | ||
}, | ||
m(e, t) { | ||
o(e, r, t); | ||
m(e, r) { | ||
o(e, n, r); | ||
}, | ||
p: s, | ||
i: s, | ||
o: s, | ||
d(e) { | ||
e && t(r); | ||
e && r(n); | ||
}, | ||
}; | ||
} | ||
export default class extends e { | ||
constructor(e) { | ||
super(), r(this, e, null, u, l, {}); | ||
super(), n(this, e, null, u, l, {}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.