From f4292f32c622a7a5a2b11ae77343698dd8cf4e92 Mon Sep 17 00:00:00 2001 From: Sanket Shevkar <43399522+sanketshevkar@users.noreply.github.com> Date: Sat, 1 Jun 2024 20:55:33 +0530 Subject: [PATCH] chore(build): fixes the deployment build (#58) Signed-off-by: sanketshevkar --- package.json | 2 +- src/App.tsx | 2 +- src/SampleDropdown.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f5b0828..d58495c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "tsc && NODE_OPTIONS=--max-old-space-size=8192 vite build", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, diff --git a/src/App.tsx b/src/App.tsx index d6d360d..6cfeef5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import { App as AntdApp, Layout, Row, Col, Collapse, theme } from "antd"; import Navbar from "./Navbar"; import AgreementData from "./AgreementData"; diff --git a/src/SampleDropdown.tsx b/src/SampleDropdown.tsx index 4a961ef..ba7e4e0 100644 --- a/src/SampleDropdown.tsx +++ b/src/SampleDropdown.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import { useState } from "react"; import { Button, Dropdown, Space, message } from "antd"; import { DownOutlined } from "@ant-design/icons";