Skip to content

Commit

Permalink
Merge pull request #579 from NotionX/fix/move-react-pdf-to-optional
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit authored Nov 7, 2024
2 parents 8c1cada + c78ead6 commit 4611def
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 @@ -65,8 +65,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 @@ -76,10 +75,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 4611def

Please sign in to comment.