8000 chore: update scss color functions and raw snapshots (#1019) · sveltejs/vite-plugin-svelte@f508d50 · GitHub
[go: up one dir, main page]

Skip to content

Commit f508d50

Browse files
authored
chore: update scss color functions and raw snapshots (#1019)
1 parent 8c8f837 commit f508d50

File tree

12 files changed

+48
-44
lines changed

12 files changed

+48
-44
lines changed

packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/all.txt

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@
109109
]
110110
},
111111
"metadata": {
112-
"hoistable": false,
113-
"hoistable_params": [],
112+
"hoisted": false,
113+
"hoisted_params": [],
114114
"scope": {
115115
"root": {
116116
"conflicts": {}
@@ -313,7 +313,7 @@
313313
"id": {
314314
"type": "Identifier",
315315
"start": 31,
316-
"end": 24,
316+
"end": 35,
317317
"loc": {
318318
"start": {
319319
"line": 2,
@@ -325,7 +325,9 @@
325325
}
326326
},
327327
"name": "name",
328-
"typeAnnotation": null
328+
"typeAnnotation": {
329+
"type": "EmptyStatement"
330+
}
329331
},
330332
"init": null
331333
}
@@ -482,18 +484,20 @@
482484
"file": "Dummy.svelte",
483485
"mappings": "AAWkB",
484486
"names": [],
487+
"ignoreList": [],
485488
"sources": [
486489
"Dummy.svelte"
487490
]
488491
}
489492
},
490493
"dependencies": [],
491494
"js": {
492-
"code": "import \"svelte/internal/disclose-version\";\nimport * as $ from \"svelte/internal/client\";\n\nvar root = $.template(`<button class=\"svelte-d8vj6a\"> </button>`);\n\nexport default function Dummy($$anchor, $$props) {\n\tlet name = $.prop($$props, \"name\");\n\tlet clicks = $.mutable_source(0);\n\tvar button = root();\n\tvar text = $.child(button);\n\n\t$.template_effect(() => $.set_text(text, `${name() ?? \"\"} clicks: ${$.get(clicks) ?? \"\"}`));\n\n\t$.event(\n\t\t\"click\",\n\t\tbutton,\n\t\t() => {\n\t\t\t$.update(clicks);\n\t\t},\n\t\tfalse\n\t);\n\n\t$.append($$anchor, button);\n}",
495+
"code": "import \"svelte/internal/disclose-version\";\nimport * as $ from \"svelte/internal/client\";\n\nvar root = $.template(`<button class=\"svelte-d8vj6a\"> </button>`);\n\nexport default function Dummy($$anchor, $$props) {\n\tlet name = $.prop($$props, \"name\", 8);\n\tlet clicks = $.mutable_state(0);\n\tvar button = root();\n\tvar text = $.child(button);\n\n\t$.reset(button);\n\t$.template_effect(() => $.set_text(text, `${name() ?? \"\"} clicks: ${$.get(clicks) ?? \"\"}`));\n\n\t$.event(\"click\", button, () => {\n\t\t$.update(clicks);\n\t});\n\n\t$.append($$anchor, button);\n}",
493496
"map": {
494497
"version": 3,
495-
"mappings": ";;;;;;KACY,IAAY;KACnB,MAAM,oBAAG,CAAC;;;;6CAMV,IAAI,0BAAW,MAAM",
498+
"mappings": ";;;;;;KACY,IAAY;KACnB,MAAM,mBAAG,CAAC;;;;;6CAMV,IAAI,0BAAW,MAAM;;;WADxB,MAAM",
496499
"names": [],
500+
"ignoreList": [],
497501
"sources": [
498502
"Dummy.svelte"
499503
]
@@ -509,14 +513,15 @@
509513
"dependencies": [],
510514
"map": {
511515
"version": 3,
512-
"mappings": "AAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;AACjB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM;AACxB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACf,CAAC,CAAC,MAAM;;AAER,CAAC;AACD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjB,EAAE,MAAM,CAAC,CAAC;AACV,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7B;;AAEA,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;;CAKlB,CAAC,CAAC,KAAK",
516+
"mappings": "AAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;AACjB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM;AACxB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACf,CAAC,CAAC,MAAM;;AAER,CAAC;AACD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjB,EAAE,MAAM,CAAC,CAAC;AACV,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7B;;AAEA,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;;CAMlB,CAAC,CAAC,KAAK",
513517
"names": [],
518+
"ignoreList": [],
514519
"sources": [
515520
"Dummy.svelte"
516521
]
517522
}
518523
},
519-
"source": "<script lang=\"ts\">\n\texport let name: string;\n\tlet clicks = 0;\n</script>\n\n<button\n\ton:click={() => {\n\t\tclicks++;\n\t}}>{name} clicks: {clicks}</button\n>\n\n<style lang=\"scss\">\n\t$blue: blue;\n\tbutton {\n\t\tcolor: darken($blue, 20);\n\t}\n</style>\n",
524+
"source": "<script lang=\"ts\">\n\texport let name: string;\n\tlet clicks = 0;\n</script>\n\n<button\n\ton:click={() => {\n\t\tclicks++;\n\t}}>{name} clicks: {clicks}</button\n>\n\n<style lang=\"scss\">\n\t@use 'sass:color';\n\t$blue: blue;\n\tbutton {\n\t\tcolor: color.adjust($blue, $lightness: -20%);\n\t}\n</style>\n",
520525
"ssr": false,
521526
"warnings": []
522527
}

packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/custom-element.txt

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,28 @@ import * as $ from "svelte/internal/client";
33

44
var root = $.template(`<button class="svelte-d8vj6a"> </button>`);
55

6+
const $$css = {
7+
hash: "svelte-d8vj6a",
8+
code: "button.svelte-d8vj6a {\n color: #000099;\n}"
9+
};
10+
611
export default function Dummy($$anchor, $$props) {
712
$.push($$props, false);
13+
$.append_styles($$anchor, $$css);
814

9-
let name = $.prop($$props, "name", 4);
10-
let clicks = $.mutable_source(0);
15+
let name = $.prop($$props, "name", 12);
16+
let clicks = $.mutable_state(0);
1117
var button = root();
1218
var text = $.child(button);
1319

20+
$.reset(button);
1421
$.template_effect(() => $.set_text(text, `${name() ?? ""} clicks: ${$.get(clicks) ?? ""}`));
1522

16-
$.event(
17-
"click",
18-
button,
19-
() => {
20-
$.update(clicks);
21-
},
22-
false
23-
);
23+
$.event("click", button, () => {
24+
$.update(clicks);
25+
});
2426

2527
$.append($$anchor, button);
26-
$.append_styles($$anchor, "svelte-d8vj6a", "button.svelte-d8vj6a {\n color: #000099;\n}");
2728

2829
return $.pop({
2930
get name() {
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export const ast={"html":{"type":"Fragment","start":73,"end":149,"children":[{"type":"Text","start":71,"end":73,"raw":"\n\n","data":"\n\n"},{"type":"Element","start":73,"end":149,"name":"button","attributes":[{"start":82,"end":115,"type":"EventHandler","name":"click","modifiers":[],"expression":{"type":"ArrowFunctionExpression","start":92,"end":114,"loc":{"start":{"line":7,"column":11},"end":{"line":9,"column":2}},"id":null,"expression":false,"generator":false,"async":false,"params":[],"body":{"type":"BlockStatement","start":98,"end":114,"loc":{"start":{"line":7,"column":17},"end":{"line":9,"column":2}},"body":[{"type":"ExpressionStatement","start":102,"end":111,"loc":{"start":{"line":8,"column":2},"end":{"line":8,"column":11}},"expression":{"type":"UpdateExpression","start":102,"end":110,"loc":{"start":{"line":8,"column":2},"end":{"line":8,"column":10}},"operator":"++","prefix":false,"argument":{"type":"Identifier","start":102,"end":108,"loc":{"start":{"line":8,"column":2},"end":{"line":8,"column":8}},"name":"clicks"}}}]},"metadata":{"hoistable":false,"hoistable_params":[],"scope":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":null,"declarations":{},"declarators":{},"references":{},"function_depth":0},"declarations":{},"declarators":{},"references":{},"function_depth":1},"declarations":{},"declarators":{},"references":{},"function_depth":2},"declarations":{},"declarators":{},"references":{},"function_depth":3},"declarations":{},"declarators":{},"references":{},"function_depth":4},"declarations":{},"declarators":{},"references":{},"function_depth":5}}}},{"type":"Attribute","start":-1,"end":-1,"name":"class","value":[{"type":"Text","data":"svelte-d8vj6a","raw":"svelte-d8vj6a","start":-1,"end":-1}]}],"children":[{"type":"MustacheTag","start":116,"end":122,"expression":{"type":"Identifier","start":117,"end":121,"loc":{"start":{"line":9,"column":5},"end":{"line":9,"column":9}},"name":"name"}},{"type":"Text","start":122,"end":131,"raw":" clicks: ","data":" clicks: "},{"type":"MustacheTag","start":131,"end":139,"expression":{"type":"Identifier","start":132,"end":138,"loc":{"start":{"line":9,"column":20},"end":{"line":9,"column":26}},"name":"clicks"}}]},{"type":"Text","start":149,"end":151,"raw":"\n\n","data":"\n\n"}]},"instance":{"type":"Script","start":0,"end":71,"context":"default","content":{"type":"Program","start":18,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":0}},"body":[{"type":"ExportNamedDeclaration","start":20,"end":44,"loc":{"start":{"line":2,"column":1},"end":{"line":2,"column":25}},"exportKind":"value","declaration":{"type":"VariableDeclaration","start":27,"end":44,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":25}},"declarations":[{"type":"VariableDeclarator","start":31,"end":43,"loc":{"start":{"line":2,"column":12},"end":{"line":2,"column":24}},"id":{"type":"Identifier","start":31,"end":24,"loc":{"start":{"line":2,"column":12},"end":{"line":2,"column":24}},"name":"name","typeAnnotation":null},"init":null}],"kind":"let"},"specifiers":[],"source":null},{"type":"VariableDeclaration","start":46,"end":61,"loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":16}},"declarations":[{"type":"VariableDeclarator","start":50,"end":60,"loc":{"start":{"line":3,"column":5},"end":{"line":3,"column":15}},"id":{"type":"Identifier","start":50,"end":56,"loc":{"start":{"line":3,"column":5},"end":{"line":3,"column":11}},"name":"clicks"},"init":{"type":"Literal","start":59,"end":60,"loc":{"start":{"line":3,"column":14},"end":{"line":3,"column":15}},"value":0,"raw":"0"}}],"kind":"let"}],"sourceType":"module"}},"css":{"type":"Style","start":151,"end":206,"attributes":[{"type":"Attribute","start":158,"end":169,"name":"lang","value":[{"start":164,"end":168,"type":"Text","raw":"scss","data":"scss"}]}],"children":[{"type":"Rule","prelude":{"type":"SelectorList","start":170,"end":176,"children":[{"type":"Selector","start":170,"end":176,"children":[{"type":"TypeSelector","name":"button","start":170,"end":176}]}]},"block":{"type":"Block","start":177,"end":198,"children":[{"type":"Declaration","start":181,"end":195,"property":"color","value":"#000099"}]},"start":170,"end":198}],"content":{"start":170,"end":198,"styles":"button {\n color: #000099;\n}","comment":null}}}
2-
export const css={"code":"button.svelte-d8vj6a {\n color: #000099;\n}","map":{"version":3,"file":"Dummy.svelte","mappings":"AAWkB","names":[],"sources":["Dummy.svelte"]}}
1+
export const ast={"html":{"type":"Fragment","start":73,"end":149,"children":[{"type":"Text","start":71,"end":73,"raw":"\n\n","data":"\n\n"},{"type":"Element","start":73,"end":149,"name":"button","attributes":[{"start":82,"end":115,"type":"EventHandler","name":"click","modifiers":[],"expression":{"type":"ArrowFunctionExpression","start":92,"end":114,"loc":{"start":{"line":7,"column":11},"end":{"line":9,"column":2}},"id":null,"expression":false,"generator":false,"async":false,"params":[],"body":{"type":"BlockStatement","start":98,"end":114,"loc":{"start":{"line":7,"column":17},"end":{"line":9,"column":2}},"body":[{"type":"ExpressionStatement","start":102,"end":111,"loc":{"start":{"line":8,"column":2},"end":{"line":8,"column":11}},"expression":{"type":"UpdateExpression","start":102,"end":110,"loc":{"start":{"line":8,"column":2},"end":{"line":8,"column":10}},"operator":"++","prefix":false,"argument":{"type":"Identifier","start":102,"end":108,"loc":{"start":{"line":8,"column":2},"end":{"line":8,"column":8}},"name":"clicks"}}}]},"metadata":{"hoisted":false,"hoisted_params":[],"scope":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":{"root":{"conflicts":{}},"parent":null,"declarations":{},"declarators":{},"references":{},"function_depth":0},"declarations":{},"declarators":{},"references":{},"function_depth":1},"declarations":{},"declarators":{},"references":{},"function_depth":2},"declarations":{},"declarators":{},"references":{},"function_depth":3},"declarations":{},"declarators":{},"references":{},"function_depth":4},"declarations":{},"declarators":{},"references":{},"function_depth":5}}}},{"type":"Attribute","start":-1,"end":-1,"name":"class","value":[{"type":"Text","data":"svelte-d8vj6a","raw":"svelte-d8vj6a","start":-1,"end":-1}]}],"children":[{"type":"MustacheTag","start":116,"end":122,"expression":{"type":"Identifier","start":117,"end":121,"loc":{"start":{"line":9,"column":5},"end":{"line":9,"column":9}},"name":"name"}},{"type":"Text","start":122,"end":131,"raw":" clicks: ","data":" clicks: "},{"type":"MustacheTag","start":131,"end":139,"expression":{"type":"Identifier","start":132,"end":138,"loc":{"start":{"line":9,"column":20},"end":{"line":9,"column":26}},"name":"clicks"}}]},{"type":"Text","start":149,"end":151,"raw":"\n\n","data":"\n\n"}]},"instance":{"type":"Script","start":0,"end":71,"context":"default","content":{"type":"Program","start":18,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":0}},"body":[{"type":"ExportNamedDeclaration","start":20,"end":44,"loc":{"start":{"line":2,"column":1},"end":{"line":2,"column":25}},"exportKind":"value","declaration":{"type":"VariableDeclaration","start":27,"end":44,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":25}},"declarations":[{"type":"VariableDeclarator","start":31,"end":43,"loc":{"start":{"line":2,"column":12},"end":{"line":2,"column":24}},"id":{"type":"Identifier","start":31,"end":35,"loc":{"start":{"line":2,"column":12},"end":{"line":2,"column":24}},"name":"name","typeAnnotation":{"type":"EmptyStatement"}},"init":null}],"kind":"let"},"specifiers":[],"source":null},{"type":"VariableDeclaration","start":46,"end":61,"loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":16}},"declarations":[{"type":"VariableDeclarator","start":50,"end":60,"loc":{"start":{"line":3,"column":5},"end":{"line":3,"column":15}},"id":{"type":"Identifier","start":50,"end":56,"loc":{"start":{"line":3,"column":5},"end":{"line":3,"column":11}},"name":"clicks"},"init":{"type":"Literal","start":59,"end":60,"loc":{"start":{"line":3,"column":14},"end":{"line":3,"column":15}},"value":0,"raw":"0"}}],"kind":"let"}],"sourceType":"module"}},"css":{"type":"Style","start":151,"end":206,"attributes":[{"type":"Attribute","start":158,"end":169,"name":"lang","value":[{"start":164,"end":168,"type":"Text","raw":"scss","data":"scss"}]}],"children":[{"type":"Rule","prelude":{"type":"SelectorList","start":170,"end":176,"children":[{"type":"Selector","start":170,"end":176,"children":[{"type":"TypeSelector","name":"button","start":170,"end":176}]}]},"block":{"type":"Block","start":177,"end":198,"children":[{"type":"Declaration","start":181,"end":195,"property":"color","value":"#000099"}]},"start":170,"end":198}],"content":{"start":170,"end":198,"styles":"button {\n color: #000099;\n}","comment":null}}}
2+
export const css={"code":"button.svelte-d8vj6a {\n color: #000099;\n}","map":{"version":3,"file":"Dummy.svelte","mappings":"AAWkB","names":[],"ignoreList":[],"sources":["Dummy.svelte"]}}
33
export const dependencies=[]
4-
export const js={"code":"import \"svelte/internal/disclose-version\";\nimport * as $ from \"svelte/internal/client\";\n\nvar root = $.template(`<button class=\"svelte-d8vj6a\"> </button>`);\n\nexport default function Dummy($$anchor, $$props) {\n\tlet name = $.prop($$props, \"name\");\n\tlet clicks = $.mutable_source(0);\n\tvar button = root();\n\tvar text = $.child(button);\n\n\t$.template_effect(() => $.set_text(text, `${name() ?? \"\"} clicks: ${$.get(clicks) ?? \"\"}`));\n\n\t$.event(\n\t\t\"click\",\n\t\tbutton,\n\t\t() => {\n\t\t\t$.update(clicks);\n\t\t},\n\t\tfalse\n\t);\n\n\t$.append($$anchor, button);\n}","map":{"version":3,"mappings":";;;;;;KACY,IAAY;KACnB,MAAM,oBAAG,CAAC;;;;6CAMV,IAAI,0BAAW,MAAM","names":[],"sources":["Dummy.svelte"]}}
4+
export const js={"code":"import \"svelte/internal/disclose-version\";\nimport * as $ from \"svelte/internal/client\";\n\nvar root = $.template(`<button class=\"svelte-d8vj6a\"> </button>`);\n\nexport default function Dummy($$anchor, $$props) {\n\tlet name = $.prop($$props, \"name\", 8);\n\tlet clicks = $.mutable_state(0);\n\tvar button = root();\n\tvar text = $.child(button);\n\n\t$.reset(button);\n\t$.template_effect(() => $.set_text(text, `${name() ?? \"\"} clicks: ${$.get(clicks) ?? \"\"}`));\n\n\t$.event(\"click\", button, () => {\n\t\t$.update(clicks);\n\t});\n\n\t$.append($$anchor, button);\n}","map":{"version":3,"mappings":";;;;;;KACY,IAAY;KACnB,MAAM,mBAAG,CAAC;;;;;6CAMV,IAAI,0BAAW,MAAM;;;WADxB,MAAM","names":[],"ignoreList":[],"sources":["Dummy.svelte"]}}
55
export const lang="ts"
66
export const metadata={"runes":false}
77
export const normalizedFilename="/src/Dummy.svelte"
8-
export const preprocessed={"code":"<script lang=\"ts\">\n\texport let name: string;\n\tlet clicks = 0;\n</script>\n\n<button\n\ton:click={() => {\n\t\tclicks++;\n\t}}>{name} clicks: {clicks}</button\n>\n\n<style lang=\"scss\">button {\n color: #000099;\n}</style>\n","dependencies":[],"map":{"version":3,"mappings":"AAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;AACjB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM;AACxB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACf,CAAC,CAAC,MAAM;;AAER,CAAC;AACD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjB,EAAE,MAAM,CAAC,CAAC;AACV,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7B;;AAEA,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;;CAKlB,CAAC,CAAC,KAAK","names":[],"sources":["Dummy.svelte"]}}
9-
export const source="<script lang=\"ts\">\n\texport let name: string;\n\tlet clicks = 0;\n</script>\n\n<button\n\ton:click={() => {\n\t\tclicks++;\n\t}}>{name} clicks: {clicks}</button\n>\n\n<style lang=\"scss\">\n\t$blue: blue;\n\tbutton {\n\t\tcolor: darken($blue, 20);\n\t}\n</style>\n"
8+
export const preprocessed={"code":"<script lang=\"ts\">\n\texport let name: string;\n\tlet clicks = 0;\n</script>\n\n<button\n\ton:click={() => {\n\t\tclicks++;\n\t}}>{name} clicks: {clicks}</button\n>\n\n<style lang=\"scss\">button {\n color: #000099;\n}</style>\n","dependencies":[],"map":{"version":3,"mappings":"AAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;AACjB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM;AACxB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACf,CAAC,CAAC,MAAM;;AAER,CAAC;AACD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjB,EAAE,MAAM,CAAC,CAAC;AACV,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7B;;AAEA,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;;CAMlB,CAAC,CAAC,KAAK","names":[],"ignoreList":[],"sources":["Dummy.svelte"]}}
9+
export const source="<script lang=\"ts\">\n\texport let name: string;\n\tlet clicks = 0;\n</script>\n\n<button\n\ton:click={() => {\n\t\tclicks++;\n\t}}>{name} clicks: {clicks}</button\n>\n\n<style lang=\"scss\">\n\t@use 'sass:color';\n\t$blue: blue;\n\tbutton {\n\t\tcolor: color.adjust($blue, $lightness: -20%);\n\t}\n</style>\n"
1010
export const ssr=false
1111
export const warnings=[]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const code="<script lang=\"ts\">\n\texport let name: string;\n\tlet clicks = 0;\n</script>\n\n<button\n\ton:click={() => {\n\t\tclicks++;\n\t}}>{name} clicks: {clicks}</button\n>\n\n<style lang=\"scss\">button {\n color: #000099;\n}</style>\n"
22
export const dependencies=[]
3-
export const map={"version":3,"mappings":"AAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;AACjB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM;AACxB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACf,CAAC,CAAC,MAAM;;AAER,CAAC;AACD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjB,EAAE,MAAM,CAAC,CAAC;AACV,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7B;;AAEA,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;;CAKlB,CAAC,CAAC,KAAK","names":[],"sources":["Dummy.svelte"]}
3+
export const map={"version":3,"mappings":"AAAA,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;AACjB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM;AACxB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACf,CAAC,CAAC,MAAM;;AAER,CAAC;AACD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjB,EAAE,MAAM,CAAC,CAAC;AACV,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7B;;AAEA,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;;CAMlB,CAAC,CAAC,KAAK","names":[],"ignoreList":[],"sources":["Dummy.svelte"]}
44
export default code

0 commit comments

Comments
 (0)
0