Skip to content

Commit

Permalink
fix: use cjs build only for node condition
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Dec 3, 2024
1 parent 91ff12e commit 8aa29e4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions telefunc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,72 +26,72 @@
"worker": "./dist/esm/node/server/index.js",
"browser": "./dist/esm/client/server.js",
"node": "./dist/cjs/node/server/index.js",
"default": "./dist/cjs/node/server/index.js",
"default": "./dist/esm/node/server/index.js",
"types": "./dist/esm/node/server/index.d.ts"
},
"./async_hooks": {
"worker": "./dist/esm/node/server/async_hooks.js",
"browser": "./dist/esm/client/poisen-pills/async_hooks.js",
"node": "./dist/cjs/node/server/async_hooks.js",
"default": "./dist/cjs/node/server/async_hooks.js",
"default": "./dist/esm/node/server/async_hooks.js",
"types": "./dist/esm/node/server/async_hooks.d.ts"
},
"./client": {
"worker": "./dist/esm/node/client.js",
"browser": "./dist/esm/client/index.js",
"node": "./dist/cjs/node/client.js",
"default": "./dist/cjs/node/client.js",
"default": "./dist/esm/node/client.js",
"types": "./dist/esm/client/index.d.ts"
},
"./react-streaming": {
"worker": "./dist/esm/node/react-streaming/index.js",
"browser": "./dist/esm/client/react-streaming/index.js",
"node": "./dist/cjs/node/react-streaming/index.js",
"default": "./dist/cjs/node/react-streaming/index.js",
"default": "./dist/esm/node/react-streaming/index.js",
"types": "./dist/esm/node/react-streaming/index.d.ts"
},
"./react-streaming/server": {
"worker": "./dist/esm/node/react-streaming/server.js",
"browser": "./dist/esm/client/poisen-pills/react-streaming/server.js",
"node": "./dist/cjs/node/react-streaming/server.js",
"default": "./dist/cjs/node/react-streaming/server.js",
"default": "./dist/esm/node/react-streaming/server.js",
"types": "./dist/esm/node/react-streaming/server.d.ts"
},
"./vite": {
"browser": "./dist/esm/client/poisen-pills/vite.js",
"node": "./dist/cjs/node/vite/index.js",
"default": "./dist/cjs/node/vite/index.js",
"default": "./dist/esm/node/vite/index.js",
"types": "./dist/esm/node/vite/index.d.ts"
},
"./webpack/loader": {
"browser": "./dist/esm/client/poisen-pills/webpack/loader.js",
"node": "./dist/cjs/node/webpack/loader.js",
"default": "./dist/cjs/node/webpack/loader.js",
"default": "./dist/esm/node/webpack/loader.js",
"types": "./dist/esm/node/webpack/loader.d.ts"
},
"./next": {
"browser": "./dist/esm/client/poisen-pills/next.js",
"node": "./dist/cjs/node/next/index.js",
"default": "./dist/cjs/node/next/index.js",
"default": "./dist/esm/node/next/index.js",
"types": "./dist/esm/node/next/index.d.ts"
},
"./nuxt": {
"browser": "./dist/esm/client/poisen-pills/nuxt.js",
"node": "./dist/cjs/node/nuxt/index.js",
"default": "./dist/cjs/node/nuxt/index.js",
"default": "./dist/esm/node/nuxt/index.js",
"types": "./dist/esm/node/nuxt/index.d.ts"
},
"./babel": {
"browser": "./dist/esm/client/poisen-pills/babel.js",
"node": "./dist/cjs/node/babel/plugin.js",
"default": "./dist/cjs/node/babel/plugin.js",
"default": "./dist/esm/node/babel/plugin.js",
"types": "./dist/esm/node/babel/plugin.d.ts"
},
"./__internal/loadBuild": {
"worker": "./dist/esm/node/vite/plugins/importBuild/loadBuild.js",
"browser": "./dist/esm/client/poisen-pills/__internal/loadBuild.js",
"node": "./dist/cjs/node/vite/plugins/importBuild/loadBuild.js",
"default": "./dist/cjs/node/vite/plugins/importBuild/loadBuild.js",
"default": "./dist/esm/node/vite/plugins/importBuild/loadBuild.js",
"types": "./dist/esm/node/vite/plugins/importBuild/loadBuild.d.ts"
}
},
Expand Down

0 comments on commit 8aa29e4

Please sign in to comment.