mirror of https://github.com/sveltejs/svelte
update acorn and parse expression as module script (#5423)
parent
5f938535a1
commit
aef5671411
@ -0,0 +1,53 @@
|
|||||||
|
/* generated by Svelte vX.Y.Z */
|
||||||
|
import {
|
||||||
|
SvelteComponent,
|
||||||
|
detach,
|
||||||
|
init,
|
||||||
|
insert,
|
||||||
|
noop,
|
||||||
|
safe_not_equal,
|
||||||
|
space,
|
||||||
|
text
|
||||||
|
} from "svelte/internal";
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let t0;
|
||||||
|
let t1;
|
||||||
|
let t2_value = import.meta.url + "";
|
||||||
|
let t2;
|
||||||
|
|
||||||
|
return {
|
||||||
|
c() {
|
||||||
|
t0 = text(/*url*/ ctx[0]);
|
||||||
|
t1 = space();
|
||||||
|
t2 = text(t2_value);
|
||||||
|
},
|
||||||
|
m(target, anchor) {
|
||||||
|
insert(target, t0, anchor);
|
||||||
|
insert(target, t1, anchor);
|
||||||
|
insert(target, t2, anchor);
|
||||||
|
},
|
||||||
|
p: noop,
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d(detaching) {
|
||||||
|
if (detaching) detach(t0);
|
||||||
|
if (detaching) detach(t1);
|
||||||
|
if (detaching) detach(t2);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self) {
|
||||||
|
const url = import.meta.url;
|
||||||
|
return [url];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Component extends SvelteComponent {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
init(this, options, instance, create_fragment, safe_not_equal, {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Component;
|
@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
const url = import.meta.url;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{url}
|
||||||
|
{import.meta.url}
|
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
html: `2048 2048`
|
||||||
|
};
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
const num = 2_048;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{num} {2_048}
|
@ -0,0 +1 @@
|
|||||||
|
[]
|
@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
const url = import.meta.url;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{url}
|
||||||
|
{import.meta.url}
|
Loading…
Reference in new issue