Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = {
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:

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

const MyServerComponent = () => {
return <FishIcon weight="duotone" />;
Expand Down
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phosphor-icons/react",
"version": "2.1.9",
"version": "2.1.10",
"description": "A clean and friendly icon family for React",
"type": "module",
"author": {
Expand Down Expand Up @@ -36,11 +36,21 @@
"types": "./dist/lib/*.d.ts",
"require": "./dist/index.cjs.js"
},
"./lib": {
"import": "./dist/lib/index.es.js",
"types": "./dist/lib/index.d.ts",
"require": "./dist/index.cjs.js"
},
"./dist/ssr": {
"import": "./dist/ssr/index.es.js",
"types": "./dist/ssr/index.d.ts",
"require": "./dist/index.cjs.js"
},
"./ssr": {
"import": "./dist/ssr/index.es.js",
"types": "./dist/ssr/index.d.ts",
"require": "./dist/index.cjs.js"
},
"./dist/ssr/*": {
"import": "./dist/ssr/*.es.js",
"types": "./dist/ssr/*.d.ts",
Expand Down