Skip to content

Commit

Permalink
fix(react): change build dependencies (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mordech authored Sep 29, 2023
1 parent 74f0470 commit 7697e6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dynamic-grid-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"prepare": "yarn build"
},
"dependencies": {
"react": "^18.2.0"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"react-dom": "^18.2.0",
"vite": "^4.4.7"
},
"publishConfig": {
Expand Down
4 changes: 4 additions & 0 deletions packages/dynamic-grid-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ export default defineConfig({
build: {
outDir: 'dist',
lib: {
formats: ['es'],
name: 'dynamic-grid-react',
entry: {
index: 'lib/index.ts',
},
},
rollupOptions: {
external: ['react', 'react/jsx-runtime'],
},
},
});

0 comments on commit 7697e6a

Please sign in to comment.