Adaptor field uses string causing dynamic require ; must accept module instance to support static bundlers
Adaptor field uses string causing dynamic require ; must accept module instance to support static bundlers: a task in LegoFlow-SWE (Harbor dataset). When using PostGraphile v5 with bundlers such as Next.js (webpack), a critical dependency warning / error is emitted because the library attempts to…
The task
When using PostGraphile v5 with bundlers such as Next.js (webpack), a critical dependency warning / error is emitted because the library attempts to dynamically load the PostgreSQL adaptor via a string import specifier. This dynamic require cannot be statically analysed by bundlers and results in a bundling failure…
Part of Lego-X/LegoFlow-SWE.