Skip to content

Commit

Permalink
fix: add worker condition
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Dec 3, 2024
1 parent cc12317 commit 85a8d4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions telefunc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,31 @@
"main": "./dist/cjs/node/server/index.js",
"exports": {
".": {
"worker": "./dist/esm/node/server/index.js",
"browser": "./dist/esm/client/server.js",
"types": "./dist/cjs/node/server/index.d.ts",
"default": "./dist/cjs/node/server/index.js"
},
"./async_hooks": {
"worker": "./dist/esm/node/server/async_hooks.js",
"browser": "./dist/esm/client/poisen-pills/async_hooks.js",
"types": "./dist/cjs/node/server/async_hooks.d.ts",
"default": "./dist/cjs/node/server/async_hooks.js"
},
"./client": {
"worker": "./dist/esm/node/client.js",
"browser": "./dist/esm/client/index.js",
"types": "./dist/esm/client/index.d.ts",
"default": "./dist/cjs/node/client.js"
},
"./react-streaming": {
"worker": "./dist/esm/node/react-streaming/index.js",
"browser": "./dist/esm/client/react-streaming/index.js",
"types": "./dist/cjs/node/react-streaming/index.d.ts",
"default": "./dist/cjs/node/react-streaming/index.js"
},
"./react-streaming/server": {
"worker": "./dist/esm/node/react-streaming/server.js",
"browser": "./dist/esm/client/poisen-pills/react-streaming/server.js",
"types": "./dist/cjs/node/react-streaming/server.d.ts",
"default": "./dist/cjs/node/react-streaming/server.js"
Expand Down Expand Up @@ -73,6 +78,7 @@
"default": "./dist/cjs/node/babel/plugin.js"
},
"./__internal/loadBuild": {
"worker": "./dist/esm/node/vite/plugins/importBuild/loadBuild.js",
"browser": "./dist/esm/client/poisen-pills/__internal/loadBuild.js",
"types": "./dist/cjs/node/vite/plugins/importBuild/loadBuild.d.ts",
"default": "./dist/cjs/node/vite/plugins/importBuild/loadBuild.js"
Expand Down

0 comments on commit 85a8d4d

Please sign in to comment.