diff --git a/package.json b/package.json
index 840336960b..2b50db7d78 100644
--- a/package.json
+++ b/package.json
@@ -102,8 +102,7 @@
"rome": "^12.0.0",
"typescript": "~5.0.2",
"vite": "^4.3.5",
- "vitest": "^0.31.0",
- "xlsx": "^0.18.5"
+ "vitest": "^0.31.0"
},
"peerDependencies": {
"react": "^18.0",
diff --git a/website/demos/CommonFeatures.tsx b/website/demos/CommonFeatures.tsx
index b1342e27eb..37827a3403 100644
--- a/website/demos/CommonFeatures.tsx
+++ b/website/demos/CommonFeatures.tsx
@@ -8,7 +8,7 @@ import type { Column, SortColumn } from '../../src';
import { textEditorClassname } from '../../src/editors/textEditor';
import type { Direction } from '../../src/types';
import type { Props } from './types';
-import { exportToCsv, exportToXlsx, exportToPdf } from './exportUtils';
+import { exportToCsv, exportToPdf } from './exportUtils';
const toolbarClassname = css`
display: flex;
@@ -356,9 +356,6 @@ export default function CommonFeatures({ direction }: Props) {
exportToCsv(gridElement, 'CommonFeatures.csv')}>
Export to CSV
- exportToXlsx(gridElement, 'CommonFeatures.xlsx')}>
- Export to XSLX
-
exportToPdf(gridElement, 'CommonFeatures.pdf')}>
Export to PDF
diff --git a/website/demos/exportUtils.tsx b/website/demos/exportUtils.tsx
index 821cfb1ca9..19ee1aca5b 100644
--- a/website/demos/exportUtils.tsx
+++ b/website/demos/exportUtils.tsx
@@ -15,20 +15,6 @@ export async function exportToCsv(
downloadFile(fileName, new Blob([content], { type: 'text/csv;charset=utf-8;' }));
}
-export async function exportToXlsx(
- gridElement: ReactElement>,
- fileName: string
-) {
- const [{ utils, writeFile }, { head, body, foot }] = await Promise.all([
- import('xlsx'),
- getGridContent(gridElement)
- ]);
- const wb = utils.book_new();
- const ws = utils.aoa_to_sheet([...head, ...body, ...foot]);
- utils.book_append_sheet(wb, ws, 'Sheet 1');
- writeFile(wb, fileName);
-}
-
export async function exportToPdf(
gridElement: ReactElement>,
fileName: string