Skip to content

Commit

Permalink
chore: add cesium to peerDependencies and update vite config (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: keiya sasaki <[email protected]>
  • Loading branch information
catpotd and keiya01 authored May 29, 2024
1 parent 6a931bd commit 562cdbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"cesium": "1.x"
},
"dependencies": {
"@reearth/cesium-mvt-imagery-provider": "1.5.4",
Expand Down
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ import svgr from "vite-plugin-svgr";
import { configDefaults } from "vitest/config";
// https://vitejs.dev/config/
export default defineConfig(() => ({
plugins: [svgr(), react(), cesium({ rebuildCesium: true }), dts({ rollupTypes: true })],
plugins: [
svgr(),
react(),
cesium({ rebuildCesium: true }),
dts({ rollupTypes: true }),
],
build: {
lib: {
entry: resolve(__dirname, "src/index.ts"),
Expand Down

0 comments on commit 562cdbf

Please sign in to comment.