Skip to content

Commit

Permalink
chore: bumpup svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
ssssota committed May 4, 2024
1 parent c456356 commit 33a2593
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 57 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"esbuild": "^0.20.2",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.2.3",
"svelte": "5.0.0-next.115",
"svelte": "5.0.0-next.123",
"tsx": "^4.7.2",
"typescript": "^5.4.5",
"vite": "^5.2.10"
Expand Down
95 changes: 49 additions & 46 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"highlight.js": "^11.9.0",
"postcss": "^8.4.38",
"rehype-highlight": "^7.0.0",
"svelte": "5.0.0-next.115",
"svelte": "5.0.0-next.123",
"svelte-check": "^3.6.9",
"svelte-twc": "workspace:*",
"tailwindcss": "^3.4.3",
Expand Down
8 changes: 2 additions & 6 deletions src/internal/client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// TwcComponent.svelte (Svelte v5.0.0-next.115)
// Note: compiler output will change before 5.0 is released!
import "svelte/internal/disclose-version";
import * as $ from "svelte/internal/client";
export function createTwcComponent(el: keyof HTMLElementTagNameMap, options: { compose: (...args: any[]) => string }) {
Expand All @@ -8,7 +6,7 @@ const cls = String.raw({ raw: typeof strings === 'string' ? [strings] : strings

var root = $.template(`<${el}><!></${el}>`);

function TwcComponent($$anchor, $$props) {
return function TwcComponent($$anchor, $$props) {
$.push($$props, true);

let props = $.rest_props($$props, ["children", "class"]);
Expand All @@ -31,7 +29,5 @@ function TwcComponent($$anchor, $$props) {

$.append($$anchor, div);
$.pop();
}

return TwcComponent;};
}};
}
4 changes: 1 addition & 3 deletions src/internal/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// TwcComponent.svelte (Svelte v5.0.0-next.115)
// Note: compiler output will change before 5.0 is released!
import * as $ from "svelte/internal/server";
export function createTwcComponent(el: keyof HTMLElementTagNameMap, options: { compose: (...args: any[]) => string }) {
return (strings: string | TemplateStringsArray, ...values: any[]) => {
Expand All @@ -16,7 +14,7 @@ return function TwcComponent($$payload, $$props) {
{ "class": options.compose(className, cls) }
],
true,
false,
true,
""
)}><!--[-->`;

Expand Down

0 comments on commit 33a2593

Please sign in to comment.