Skip to content

Commit

Permalink
fix: support client resolving for legacy toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Mar 3, 2022
1 parent 4678081 commit 4f3d414
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions telefunc/client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Some tools don't support `package.json#exports`, such as:
// - Nuxt v2
// - Expo/Metro
module.exports = require('./dist/client/index.js')
6 changes: 2 additions & 4 deletions telefunc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@
"files": [
"dist/node/",
"dist/client/",
"babel.js",
"vite.d.ts",
"next.d.ts",
"nuxt.d.ts"
"*.d.ts",
"*.js"
],
"keywords": [
"rpc",
Expand Down

0 comments on commit 4f3d414

Please sign in to comment.