Skip to content

Commit

Permalink
feat: move react-pdf to be optional dep
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Nov 7, 2024
1 parent 740d0af commit c78ead6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
9 changes: 6 additions & 3 deletions packages/react-notion-x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
"react-hotkeys-hook": "^4.5.1",
"react-image": "^4.0.3",
"react-lazy-images": "^1.1.0",
"react-modal": "^3.14.3",
"react-pdf": "^9.1.1"
"react-modal": "^3.14.3"
},
"devDependencies": {
"@types/lodash.throttle": "^4.1.6",
Expand All @@ -75,10 +74,14 @@
"clipboard-copy": "^4.0.1",
"date-fns": "^4.1.0",
"format-number": "^3.0.0",
"lodash.throttle": "^4.1.1"
"lodash.throttle": "^4.1.1",
"react-pdf": "^9.1.1"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
},
"optionalDependencies": {
"react-pdf": "^9.1.1"
}
}
3 changes: 2 additions & 1 deletion packages/react-notion-x/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export default defineConfig({
shims: false,
dts: true,
minify: false,
sourcemap: true
sourcemap: true,
external: ['react-pdf']
})
19 changes: 14 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c78ead6

Please sign in to comment.