Skip to content

Commit

Permalink
feat(react): export react server sub-entry (#1762)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekip committed Sep 14, 2023
1 parent 5838d2d commit fa77d82
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/react/package.json
Expand Up @@ -51,6 +51,16 @@
"default": "./dist/index.mjs"
}
},
"./server": {
"require": {
"types": "./dist/server.d.ts",
"default": "./dist/server.cjs"
},
"import": {
"types": "./dist/server.d.ts",
"default": "./dist/server.mjs"
}
},
"./package.json": "./package.json"
},
"files": [
Expand Down
1 change: 1 addition & 0 deletions test/node-api-esm/index.js
Expand Up @@ -6,3 +6,4 @@ assert(await import("@lingui/cli/api/extractors/typescript"))
assert(await import("@lingui/cli/api/extractors/babel"))

assert(await import("@lingui/core"))
assert(await import("@lingui/react/server"))

1 comment on commit fa77d82

@vercel
Copy link

@vercel vercel bot commented on fa77d82 Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.