Skip to content

Commit 49b60e8

Browse files
chore: apply automated updates
1 parent 7a3c886 commit 49b60e8

File tree

3 files changed

+6
-23
lines changed

3 files changed

+6
-23
lines changed

examples/vite-ssr-arrow/src/app.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ export function App() {
9191
};
9292

9393
watch(() => {
94-
console.log(
95-
`[Arrow.js] ${remaining()} of ${state.todos.length} todos remaining`
96-
);
94+
console.log(`[Arrow.js] ${remaining()} of ${state.todos.length} todos remaining`);
9795
});
9896

9997
return html`
@@ -119,10 +117,7 @@ export function App() {
119117
${Filters(state)}
120118
121119
<ul class="todo-list">
122-
${() =>
123-
filtered().map((todo) =>
124-
TodoItem({ todo, onToggle, onRemove }).key(todo.id)
125-
)}
120+
${() => filtered().map((todo) => TodoItem({ todo, onToggle, onRemove }).key(todo.id))}
126121
</ul>
127122
128123
<footer class="footer">

examples/vite-ssr-arrow/src/entry-server.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ export default {
1414
const head = [
1515
`<meta name="viewport" content="width=device-width, initial-scale=1.0" />`,
1616
...assets.css.map(
17-
(attr: Record<string, string>) =>
18-
`<link rel="stylesheet" href="${attr.href}" />`
17+
(attr: Record<string, string>) => `<link rel="stylesheet" href="${attr.href}" />`
1918
),
2019
...assets.js.map(
21-
(attr: Record<string, string>) =>
22-
`<link rel="modulepreload" href="${attr.href}" />`
20+
(attr: Record<string, string>) => `<link rel="modulepreload" href="${attr.href}" />`
2321
),
2422
`<script type="module" src="${assets.entry}"></script>`,
2523
].join("\n ");

examples/vite-ssr-arrow/vite.config.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,9 @@ export default defineConfig({
99
},
1010
},
1111
optimizeDeps: {
12-
exclude: [
13-
"@arrow-js/core",
14-
"@arrow-js/framework",
15-
"@arrow-js/ssr",
16-
"@arrow-js/hydrate",
17-
],
12+
exclude: ["@arrow-js/core", "@arrow-js/framework", "@arrow-js/ssr", "@arrow-js/hydrate"],
1813
},
1914
ssr: {
20-
noExternal: [
21-
"@arrow-js/core",
22-
"@arrow-js/framework",
23-
"@arrow-js/ssr",
24-
"@arrow-js/hydrate",
25-
],
15+
noExternal: ["@arrow-js/core", "@arrow-js/framework", "@arrow-js/ssr", "@arrow-js/hydrate"],
2616
},
2717
});

0 commit comments

Comments
 (0)