Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 04fb8fe

Browse files
committed
Import zod differently to better tree shake it
1 parent 4a39089 commit 04fb8fe

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

frontend/src/pagination.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import { useState } from "react";
16-
import { z } from "zod";
16+
import * as z from "zod";
1717

1818
import { PageInfo } from "./gql/graphql";
1919

frontend/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
} from "@tanstack/react-router";
2020
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
2121
import { Client } from "urql";
22-
import { z } from "zod";
22+
import * as z from "zod";
2323

2424
import Layout from "../components/Layout";
2525
import NotFound from "../components/NotFound";

frontend/src/routes/reset-cross-signing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import IconKey from "@vector-im/compound-design-tokens/icons/key.svg?react";
1818
import { Alert, Button, Text } from "@vector-im/compound-web";
1919
import { useTranslation } from "react-i18next";
2020
import { useMutation, useQuery } from "urql";
21-
import { z } from "zod";
21+
import * as z from "zod";
2222

2323
import BlockList from "../components/BlockList";
2424
import { ButtonLink } from "../components/ButtonLink";

tools/syn2mas/src/schemas/mas.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import { z } from "zod";
15+
import * as z from "zod";
1616

1717
const uriDatabaseConfig = z.object({
1818
uri: z.string(),

tools/syn2mas/src/schemas/synapse.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import { z } from "zod";
15+
import * as z from "zod";
1616

1717
const sqlite3DatabaseConfig = z.object({
1818
name: z.literal("sqlite3"),

0 commit comments

Comments
 (0)