Skip to content

Commit ce1e96e

Browse files
committed
build(polyfill): use @craftzdog/pouchdb-errors
1 parent 5340db9 commit ce1e96e

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

example/babel.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@ const root = path.resolve(__dirname, '..')
77
module.exports = getConfig(
88
{
99
presets: ['module:@react-native/babel-preset'],
10+
plugins: [
11+
[
12+
'module-resolver',
13+
{
14+
extensions: ['.tsx', '.ts', '.js', '.json'],
15+
alias: {
16+
'@': './src',
17+
'crypto': 'react-native-quick-crypto',
18+
'stream': 'readable-stream',
19+
'buffer': '@craftzdog/react-native-buffer',
20+
'pouchdb-errors': '@craftzdog/pouchdb-errors',
21+
},
22+
},
23+
],
24+
],
1025
},
1126
{ root, pkg }
1227
)

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build:ios": "react-native build-ios --scheme PouchdbAdapterReactNativeSqliteExample --mode Debug --extra-params \"-sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO\""
1111
},
1212
"dependencies": {
13+
"@craftzdog/pouchdb-errors": "^9.0.1",
1314
"@op-engineering/op-sqlite": "^12.0.2",
1415
"debug": "^4.4.0",
1516
"pouchdb-adapter-http": "^9.0.0",

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,6 +1777,13 @@ __metadata:
17771777
languageName: node
17781778
linkType: hard
17791779

1780+
"@craftzdog/pouchdb-errors@npm:^9.0.1":
1781+
version: 9.0.1
1782+
resolution: "@craftzdog/pouchdb-errors@npm:9.0.1"
1783+
checksum: 2e7b899f69f172de9d03ecddfd843b2d1672f79d29b0608912d2f1615b183715e70dc746a75dfba93cee8c514db884b6bd007c35122b42fd035559bdcfdb4e3c
1784+
languageName: node
1785+
linkType: hard
1786+
17801787
"@craftzdog/react-native-buffer@npm:^6.0.5":
17811788
version: 6.0.5
17821789
resolution: "@craftzdog/react-native-buffer@npm:6.0.5"
@@ -10482,6 +10489,7 @@ __metadata:
1048210489
"@babel/core": ^7.25.2
1048310490
"@babel/preset-env": ^7.25.3
1048410491
"@babel/runtime": ^7.25.0
10492+
"@craftzdog/pouchdb-errors": ^9.0.1
1048510493
"@op-engineering/op-sqlite": ^12.0.2
1048610494
"@react-native-community/cli": 15.0.1
1048710495
"@react-native-community/cli-platform-android": 15.0.1

0 commit comments

Comments
 (0)