Skip to content

Commit ce1ce6b

Browse files
committed
Try to break circular dep
# Conflicts: # example/ios/Podfile.lock # src/index.ts
1 parent 1fd027f commit ce1ce6b

4 files changed

Lines changed: 440 additions & 423 deletions

File tree

example/metro.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const root = path.resolve(__dirname, '..');
1010
*
1111
* @type {import('metro-config').MetroConfig}
1212
*/
13-
module.exports = withMetroConfig(getDefaultConfig(__dirname), {
13+
const config = getDefaultConfig(__dirname);
14+
config.resolver.requireCycleIgnorePatterns = [];
15+
16+
module.exports = withMetroConfig(config, {
1417
root,
1518
dirname: __dirname,
1619
});

src/Storage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { open, type DB } from './index';
1+
import { type DB } from './index';
2+
import { open } from './functions';
23

34
type StorageOptions = {
45
location?: string;

0 commit comments

Comments
 (0)