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";