Skip to content

Commit

Permalink
fix: stop importing css at the library level
Browse files Browse the repository at this point in the history
  • Loading branch information
mdornseif committed Feb 23, 2024
1 parent 780c32f commit 54051c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/useAgGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { SideBarModule } from '@ag-grid-enterprise/side-bar'
import { StatusBarModule } from '@ag-grid-enterprise/status-bar'
import { useCallback, useState } from 'react'
import mem from 'mem'
import '@ag-grid-community/styles/ag-grid.css'
// import '@ag-grid-community/styles/ag-grid.css'

ModuleRegistry.registerModules([
ClientSideRowModelModule,
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
Expand All @@ -30,7 +30,7 @@
"lint": "dts lint",
"prepare": "husky",
"preview": "vite preview",
"size": "npx vite-bundle-visualizer -t sunburst",
"size": "npx vite-bundle-visualizer -t sunburst # npx source-map-explorer dist/index.js ",
"test": "TZ=utc vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "TZ=utc vitest watch",
Expand Down Expand Up @@ -113,7 +113,8 @@
"vitest": "^1.3.0"
},
"peerDependencies": {
"react": ">=18"
"react": ">=18",
"react-dom": ">=18"
},
"engines": {
"node": ">=18"
Expand Down

0 comments on commit 54051c8

Please sign in to comment.