This is a repo to test SQLite and PGLite support within NextJS. Mainly to establish support for ElectricSQL projects
tested with:
Bun 1.1.8
"dependencies": {
"@electric-sql/pglite": "^0.1.5",
"electric-sql": "^0.11.1",
"next": "^14.2.0",
"wa-sqlite": "rhashimoto/wa-sqlite#v0.9.13"
},
Webpack | Turbopack | |
---|---|---|
SQLite | ✅ | ❌ |
PGLite | ❌ | ❌ |
Install:
bun i
Start:
bun run dev
Start:
bun run dev -- --turbo
SQLite test page: http://localhost:3000/sqlite
Using webpack, SQLite loads in the browser, though we don't have a server in order to make reproduction easier.
With Turbopack it is not bundling properly.