Skip to content

Commit

Permalink
fix(size): do not bundle ag-grid
Browse files Browse the repository at this point in the history
  • Loading branch information
mdornseif committed Feb 23, 2024
1 parent be3b177 commit 0a35742
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@
*/

export * from './useAgGrid'

export {
type ColumnApi,
type ColDef,
type ColGroupDef,
type GridApi,
type GridOptions,
} from '@ag-grid-community/core'
export { type AgGridReact } from '@ag-grid-community/react'
export { type AgGridReactProps, type AgReactUiProps } from '@ag-grid-community/react/lib/shared/interfaces'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"node": ">=18"
},
"tsup": {
"bundle": true,
"bundle": false,
"dts": true,
"entry": [
"lib/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
build: {
lib: {
// Could also be a dictionary or array of multiple entry points
entry: resolve(__dirname, 'lib/main.ts'),
entry: resolve(__dirname, 'lib/index.ts'),
name: 'lib',
// the proper extensions will be added
fileName: 'index',
Expand Down

0 comments on commit 0a35742

Please sign in to comment.