Skip to content

Commit

Permalink
Upgraded SheetJS
Browse files Browse the repository at this point in the history
  • Loading branch information
shauryag2002 committed Nov 23, 2024
1 parent 2fdffa2 commit d6851ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"lint": "eslint ./src",
"lint-fix": "eslint ./src --fix",
"format": "prettier ./src ./cypress --write",
"sort-locales": "node ./scripts/sort-locales.js"
"sort-locales": "node ./scripts/sort-locales.js",
"vite": "vite --cdn https://cdn.sheetjs.com/xlsx-latest/package/xlsx.mjs"
},
"dependencies": {
"@fontsource/figtree": "^5.1.1",
Expand Down Expand Up @@ -95,8 +96,7 @@
"react-webcam": "^7.2.0",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7",
"use-keyboard-shortcut": "^1.1.6",
"xlsx": "^0.18.5"
"use-keyboard-shortcut": "^1.1.6"
},
"devDependencies": {
"@julr/vite-plugin-validate-env": "^1.1.1",
Expand Down
1 change: 1 addition & 0 deletions src/components/Common/ExcelViewer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ReactNode, useEffect, useState } from "react";
import * as XLSX from "https://cdn.sheetjs.com/xlsx-latest/package/xlsx.mjs";

import CareIcon from "@/CAREUI/icons/CareIcon";

Expand Down
1 change: 1 addition & 0 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default defineConfig(({ mode }) => {
"https://egov-s3-facility-10bedicu.s3.amazonaws.com",
"https://egov-s3-patient-data-10bedicu.s3.amazonaws.com",
"http://localhost:4566",
"https://cdn.sheetjs.com/xlsx-latest/package/xlsx.mjs",
].join(" ");

return {
Expand Down

0 comments on commit d6851ec

Please sign in to comment.