Skip to content

Commit

Permalink
feat: export css via a separate entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunvegda committed Apr 2, 2024
1 parent 3fcc4dd commit d8f386d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"name": "Arjun Vegda",
"url": "https://arjunvegda.com"
},
"sideEffects": false,
"sideEffects": [
"*.css"
],
"source": "./src/index.ts",
"exports": {
"./package.json": "./package.json",
Expand All @@ -18,6 +20,7 @@
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs.js"
},
"./styles.css": "./dist/index.css",
"./utils": {
"import": {
"types": "./dist/utils.d.mts",
Expand Down
1 change: 0 additions & 1 deletion src/DevTools/DevTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
import { Extension, ExtensionProps } from './Extension';
import { InternalDevToolsContext } from './internal-jotai-store';

// TODO move these out to a separate entry point
import './styles.css';

export type DevToolsProps = ExtensionProps & {
Expand Down

0 comments on commit d8f386d

Please sign in to comment.