Import zod differently to better tree shake it

This commit is contained in:
Quentin Gliech committed 2024-03-29 19:28:30 +01:00
1 parent 4a390891f1
commit 04fb8fe376
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@
// limitations under the License.
import { useState } from "react";
import { z } from "zod";
import * as z from "zod";
import { PageInfo } from "./gql/graphql";
+1 -1
View File
@@ -19,7 +19,7 @@ import {
} from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
import { Client } from "urql";
import { z } from "zod";
import * as z from "zod";
import Layout from "../components/Layout";
import NotFound from "../components/NotFound";
+1 -1
View File
@@ -18,7 +18,7 @@ import IconKey from "@vector-im/compound-design-tokens/icons/key.svg?react";
import { Alert, Button, Text } from "@vector-im/compound-web";
import { useTranslation } from "react-i18next";
import { useMutation, useQuery } from "urql";
import { z } from "zod";
import * as z from "zod";
import BlockList from "../components/BlockList";
import { ButtonLink } from "../components/ButtonLink";
+1 -1
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import { z } from "zod";
import * as z from "zod";
const uriDatabaseConfig = z.object({
uri: z.string(),
+1 -1
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import { z } from "zod";
import * as z from "zod";
const sqlite3DatabaseConfig = z.object({
name: z.literal("sqlite3"),