<https://cashapp.github.io/sqldelight/2.0.0/js_sql...
# squarelibraries
n
https://cashapp.github.io/sqldelight/2.0.0/js_sqlite/#using-a-web-worker states "Webpack has special support for referencing a worker script from an installed NPM package by passing
import.meta.url
as a second argument to the
URL
constructor. Webpack will automatically bundle the worker script from the referenced NPM package at build time"
The frontend project consuming the kotlin project using sqldelight is using vite and im getting this error in the console:
sqljs.worker.js:1     GET <http://localhost:3000/node_modules/.vite/deps/@cashapp/sqldelight-sqljs-worker/sqljs.worker.js?type=classic&worker_file> 504 (Gateway Timeout)
The folder
@cashapp
does not exist in the
.vite/deps
folder, vite docs mention web workers but my knowledge about this is not enough to know what to change here, hoping someone here might have an idea?