Skip to content

Commit

Permalink
add react-native support (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Aug 12, 2024
1 parent edc2819 commit 5d1f97d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,12 @@ export const testMyFirstTest = tc => {
</dl>
</details>

### React-Native support

```sh
npm i isomorphic-webcrypto
```

### License

[The MIT License](./LICENSE) © Kevin Jahns
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@
"types": "./webcrypto.d.ts",
"deno": "./webcrypto.deno.js",
"bun": "./webcrypto.js",
"react-native": "./dist/webcrypto.react-native.cjs",
"browser": {
"module": "./webcrypto.js",
"require": "./dist/webcrypto.cjs",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export default [{
entryFileNames: '[name].cjs',
chunkFileNames: '[name]-[hash].cjs'
},
external: ['isomorphic.js', 'node:crypto', 'lib0/webcrypto', 'lib0/performance', 'perf_hooks']
external: ['isomorphic.js', 'node:crypto', 'lib0/webcrypto', 'lib0/performance', 'perf_hooks', 'isomorphic-webcrypto', 'node:perf_hooks', 'lib0/logging']
}]

0 comments on commit 5d1f97d

Please sign in to comment.