@openhi/constructs 0.0.136 → 0.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -2322,10 +2322,11 @@ var DataStorePostgresReplica = class extends import_constructs6.Construct {
2322
2322
  bundling: {
2323
2323
  minify: true,
2324
2324
  sourceMap: false,
2325
- // pg has conditional/optional deps (pg-native, pg-cloudflare) that
2326
- // historically misbehave when bundled by esbuild; keep it as a real
2327
- // node_module in the Lambda zip instead.
2328
- nodeModules: ["pg"]
2325
+ // pg's conditional optional deps (pg-native, pg-cloudflare) are
2326
+ // marked external so esbuild does not try to resolve them — pg's
2327
+ // runtime code wraps the requires in try/catch and falls back to
2328
+ // the pure-JS client when they are not present.
2329
+ externalModules: ["pg-native", "pg-cloudflare"]
2329
2330
  }
2330
2331
  });
2331
2332
  this.cluster.secret.grantRead(this.replicationFunction);