@@ -7,4 +7,5 @@ await esbuild.build({
platform: 'node',
target: ['node12'],
bundle: true,
+ keepNames: true,
});
@@ -54,7 +54,7 @@ function findAdapterCtorInModule(module) {
let adapterCtor;
if (!module || typeof module !== 'object' || Array.isArray(module)) return;
for (const ctor of Object.values(module)) {
- if (typeof ctor === 'function') {
+ if (typeof ctor === 'function' && ctor.prototype instanceof Adapter) {
adapterCtor = ctor;
break;
}