fix(queue-postgres): the package cannot be bundled into an ES module application #59
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core#59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PostgresQueueAdaptercomputes the path ofsql/queue_messages.sqlfrom__dirnamewhen the module loads (SCHEMA_SQL_PATH). Bundled into an ES module application (Vite SSR withnoExternal),__dirnamedoes not exist and importing the package throwsReferenceError: __dirname is not defined in ES module scope.Same defect and same fix as in
@quatrain/auth-local(#58): keep the DDL as an exported constant, keep the SQL file shipped, and add a test that keeps the two identical.