diff --git a/src/DocViewer.stories.tsx b/src/DocViewer.stories.tsx index 06c392f..4eeef9a 100644 --- a/src/DocViewer.stories.tsx +++ b/src/DocViewer.stories.tsx @@ -4,10 +4,10 @@ import { DocViewerRenderers } from "./renderers"; import pdfFile from "./exampleFiles/pdf-file.pdf"; import pdfMultiplePagesFile from "./exampleFiles/pdf-multiple-pages-file.pdf"; -import pngFile from "./exampleFiles/png-image.png"; -import csvFile from "./exampleFiles/csv-file.csv"; -import epsFile from "./exampleFiles/eps-file.eps"; -import webpFile from "./exampleFiles/webp-file.webp"; +import pngFile from "./exampleFiles/png-image.png?url"; +import csvFile from "./exampleFiles/csv-file.csv?url"; +import epsFile from "./exampleFiles/eps-file.eps?url"; +import webpFile from "./exampleFiles/webp-file.webp?url"; import { DocViewerRef, IDocument } from "."; diff --git a/src/declaration.file.d.ts b/src/declaration.file.d.ts index bdc0107..b9c65da 100644 --- a/src/declaration.file.d.ts +++ b/src/declaration.file.d.ts @@ -1,8 +1,9 @@ +/// declare module "*.png"; declare module "*.pdf"; declare module "*.gif"; declare module "*.csv"; declare module "*.eps"; declare module "*.webp"; - declare module "react-csv-to-table"; +declare module "rollup/parseAst"; diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..3fb6f19 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "exclude": [ + "node_modules", + "./*.ts", + "src/**/*.test.tsx", + "src/**/*.stories.tsx" + ] +} diff --git a/tsconfig.json b/tsconfig.json index a6c2955..ca6a9f5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "outDir": "./dist/esm", "target": "ES6", - "module": "ES6", + "module": "es2020", "lib": ["dom", "dom.iterable", "esnext"], "declaration": true, "esModuleInterop": true, @@ -12,7 +12,7 @@ "moduleResolution": "Bundler", "resolveJsonModule": true, "jsx": "react-jsx", - "noEmit": true, + "noEmit": false, "skipLibCheck": false, "types": ["vitest/globals"] }