You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GenosDB uses dynamic imports with `import.meta.url` for loading optional modules. Some bundlers may require additional configuration to handle this correctly.
4
+
5
+
## Vite
6
+
7
+
If using Vite, add the following to your `vite.config.js`:
8
+
9
+
```js
10
+
import { defineConfig } from'vite'
11
+
12
+
exportdefaultdefineConfig({
13
+
optimizeDeps: {
14
+
exclude: ['genosdb']
15
+
}
16
+
})
17
+
```
18
+
19
+
This tells Vite to skip pre-bundling GenosDB, allowing the dynamic imports to resolve correctly at runtime.
20
+
21
+
## Webpack
22
+
23
+
No additional configuration is typically required for Webpack 5+.
24
+
25
+
## esbuild / Bun
26
+
27
+
No additional configuration required.
28
+
29
+
## CDN Usage
30
+
31
+
When loading GenosDB directly from a CDN, no bundler configuration is needed:
0 commit comments