Skip to content

Commit 57424d5

Browse files
committed
chore(lib): better export mapping
1 parent 96fba92 commit 57424d5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = {
6666
When using Phosphor Icons in an SSR environment, within a React Server Component, or in any environment that does not permit the use of the Context API ([Next.js](https://nextjs.org/) Server Component, for example), import icons from the `/dist/ssr` submodule:
6767

6868
```tsx
69-
import { FishIcon } from "@phosphor-icons/react/dist/ssr";
69+
import { FishIcon } from "@phosphor-icons/react/ssr";
7070

7171
const MyServerComponent = () => {
7272
return <FishIcon weight="duotone" />;

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@phosphor-icons/react",
3-
"version": "2.1.9",
3+
"version": "2.1.10",
44
"description": "A clean and friendly icon family for React",
55
"type": "module",
66
"author": {
@@ -36,11 +36,21 @@
3636
"types": "./dist/lib/*.d.ts",
3737
"require": "./dist/index.cjs.js"
3838
},
39+
"./lib": {
40+
"import": "./dist/lib/index.es.js",
41+
"types": "./dist/lib/index.d.ts",
42+
"require": "./dist/index.cjs.js"
43+
},
3944
"./dist/ssr": {
4045
"import": "./dist/ssr/index.es.js",
4146
"types": "./dist/ssr/index.d.ts",
4247
"require": "./dist/index.cjs.js"
4348
},
49+
"./ssr": {
50+
"import": "./dist/ssr/index.es.js",
51+
"types": "./dist/ssr/index.d.ts",
52+
"require": "./dist/index.cjs.js"
53+
},
4454
"./dist/ssr/*": {
4555
"import": "./dist/ssr/*.es.js",
4656
"types": "./dist/ssr/*.d.ts",

0 commit comments

Comments
 (0)