mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-01-06 04:58:54 -05:00
- Added a new page for generating a table of contents from PDF bookmarks. - Introduced a web worker to handle the TOC generation process in the background. - Updated TypeScript definitions for coherentpdf integration. - Enhanced the Vite configuration to include necessary headers and exclude specific dependencies. - Modified tsconfig to include WebWorker library and updated file inclusion paths. - Added a new script for handling TOC logic and user interactions.
67 lines
1.7 KiB
JSON
67 lines
1.7 KiB
JSON
// {
|
|
// "compilerOptions": {
|
|
// "target": "ES2022",
|
|
// "useDefineForClassFields": true,
|
|
// "module": "ESNext",
|
|
// "lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
// "types": ["vite/client"],
|
|
// "skipLibCheck": true,
|
|
|
|
// /* Bundler mode */
|
|
// "moduleResolution": "bundler",
|
|
// "allowImportingTsExtensions": true,
|
|
// "verbatimModuleSyntax": true,
|
|
// "moduleDetection": "force",
|
|
// "noEmit": true,
|
|
|
|
// /* Linting */
|
|
// "strict": true,
|
|
// "noUnusedLocals": true,
|
|
// "noUnusedParameters": true,
|
|
// "erasableSyntaxOnly": true,
|
|
// "noFallthroughCasesInSwitch": true,
|
|
// "noUncheckedSideEffectImports": true
|
|
// },
|
|
// "include": ["src"]
|
|
// }
|
|
|
|
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ESNext",
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable", "WebWorker"],
|
|
"types": ["vite/client", "vitest/globals"], // Added vitest/globals
|
|
|
|
/* Easier module handling for Vite */
|
|
"moduleResolution": "bundler",
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
"skipLibCheck": true,
|
|
"noEmit": true,
|
|
"allowImportingTsExtensions": true,
|
|
|
|
/* Disable strict checks for now */
|
|
"strict": false,
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noFallthroughCasesInSwitch": false,
|
|
"noUncheckedSideEffectImports": false,
|
|
|
|
/* Fix for ArrayBuffer type issues */
|
|
"noImplicitAny": false,
|
|
|
|
/* Quality-of-life options */
|
|
"isolatedModules": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
/* Path aliases (optional but helpful) */
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
}
|
|
},
|
|
"include": ["src", "src/**/*.ts", "public/workers"], // Updated to include all TS files
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|